mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 11:10:05 +01:00
Attempt emergency fix for minecarts.
This commit is contained in:
parent
f1f95d0a21
commit
32eece216e
@ -488,12 +488,20 @@ public class MovingListener implements Listener {
|
||||
|
||||
Location newTo = null;
|
||||
|
||||
// Emergency fix:
|
||||
final MovingData data = MovingData.getData(player);
|
||||
data.noFallFallDistance = 0;
|
||||
data.noFallVL = 0;
|
||||
data.noFallOnGroundClient = data.noFallOnGroundServer = data.noFallWasOnGroundClient = data.noFallWasOnGroundServer = true;
|
||||
|
||||
if (morePacketsVehicle.isEnabled(player))
|
||||
// If the player is handled by the more packets vehicle check, execute it.
|
||||
newTo = morePacketsVehicle.check(player, event.getFrom(), event.getTo());
|
||||
else
|
||||
// Otherwise we need to clear his dataFactory.
|
||||
MovingData.getData(player).clearMorePacketsData();
|
||||
data.clearMorePacketsData();
|
||||
|
||||
|
||||
|
||||
// Did one of the checks decide we need a new "to"-location?
|
||||
if (newTo != null)
|
||||
|
Loading…
Reference in New Issue
Block a user