From f9691c3ea815583b3ec40869351a9de24fc6e478 Mon Sep 17 00:00:00 2001 From: asofold Date: Wed, 30 Jan 2013 01:22:19 +0100 Subject: [PATCH] Fix NoFall violations with ender-pearls. --- .../neatmonster/nocheatplus/checks/moving/MovingListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java index 6f9cee19..e42a2919 100644 --- a/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java +++ b/NCPPlugin/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingListener.java @@ -828,6 +828,10 @@ public class MovingListener extends CheckListener implements TickListener, IRemo player.setFallDistance((float) fallDistance); } } + if (event.getCause() == TeleportCause.ENDER_PEARL){ + // Prevent NoFall violations for ender-pearls. + data.noFallSkipAirCheck = true; + } } else{ // Cancelled, not a set back, ignore it, basically.