Fixed cancellation point

This commit is contained in:
Auxilor 2020-11-23 20:25:05 +00:00
parent 46a4fe91e2
commit 8be5c59a49

View File

@ -33,10 +33,10 @@ public class Endershot extends EcoEnchant {
Player player = (Player) event.getEntity();
event.setCancelled(true);
if(!player.isSneaking()) return;
event.setCancelled(true);
if(!EnchantChecks.mainhand(player, this)) return;
if(!player.getInventory().contains(Material.ENDER_PEARL, 1) && !player.getGameMode().equals(GameMode.CREATIVE))