mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 13:46:46 +01:00
Fixed possible NPE with Acrobatics fall checks.
This commit is contained in:
parent
2bef0e833f
commit
fce02dc0e5
@ -129,7 +129,7 @@ public class EntityListener implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!Misc.isInvincible(player, event)) {
|
if (!Misc.isInvincible(player, event)) {
|
||||||
if (cause == DamageCause.FALL && !player.isInsideVehicle() && !player.getItemInHand().getType().equals(Material.ENDER_PEARL)) {
|
if (cause == DamageCause.FALL && !player.isInsideVehicle() && !(player.getItemInHand().getType() == Material.ENDER_PEARL)) {
|
||||||
AcrobaticsManager acroManager = new AcrobaticsManager(player);
|
AcrobaticsManager acroManager = new AcrobaticsManager(player);
|
||||||
acroManager.rollCheck(event);
|
acroManager.rollCheck(event);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user