mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Fixed cancellation point
This commit is contained in:
parent
46a4fe91e2
commit
8be5c59a49
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user