diff --git a/nms-patches/EntityHuman.patch b/nms-patches/EntityHuman.patch index 290b643416..fad88539d4 100644 --- a/nms-patches/EntityHuman.patch +++ b/nms-patches/EntityHuman.patch @@ -315,7 +315,7 @@ + if (event.isCancelled()) { + cancelled = true; + } else if (!velocity.equals(event.getVelocity())) { -+ player.setVelocity(velocity); ++ player.setVelocity(event.getVelocity()); + } + + if (!cancelled) { diff --git a/nms-patches/EntityTrackerEntry.patch b/nms-patches/EntityTrackerEntry.patch index dda3d64373..0a6cc77920 100644 --- a/nms-patches/EntityTrackerEntry.patch +++ b/nms-patches/EntityTrackerEntry.patch @@ -89,13 +89,13 @@ + Player player = (Player) this.tracker.getBukkitEntity(); + org.bukkit.util.Vector velocity = player.getVelocity(); + -+ PlayerVelocityEvent event = new PlayerVelocityEvent(player, velocity); ++ PlayerVelocityEvent event = new PlayerVelocityEvent(player, velocity.clone()); + this.tracker.world.getServer().getPluginManager().callEvent(event); + + if (event.isCancelled()) { + cancelled = true; + } else if (!velocity.equals(event.getVelocity())) { -+ player.setVelocity(velocity); ++ player.setVelocity(event.getVelocity()); + } + } +