Fixed false positives with boats, changes to MorePackets

This commit is contained in:
Rammelkast committed 2020-06-09 14:33:54 +02:00
1 parent db9aa97ca1
commit 610d53550f
6 files changed
+32 -4

No files matched your search

@@ -60,7 +60,8 @@ public class FlightCheck {
&& Utilities.blockIsnt(player.getLocation().getBlock().getRelative(BlockFace.DOWN),
new Material[] { Utilities.IRON_BARS })
&& Utilities.blockIsnt(player.getLocation().getBlock().getRelative(BlockFace.DOWN),
new String[] { "FENCE", "FENCE_GATE" })) {
new String[] { "FENCE", "FENCE_GATE" })
&& !Utilities.couldBeOnBoat(player)) {
if (!BLOCKS_OVER_FLIGHT.containsKey(uuid)) {
BLOCKS_OVER_FLIGHT.put(uuid, 0D);
}