mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
Limit hopper to valid directions. Fixes BUKKIT-3940
This commit is contained in:
parent
06ebe6b705
commit
af964c8331
@ -145,7 +145,7 @@ public class BlockHopper extends BlockContainer {
|
||||
}
|
||||
|
||||
public static int c(int i) {
|
||||
return i & 7;
|
||||
return Math.min(i & 7, 5); // CraftBukkit - Fix AIOOBE in callers
|
||||
}
|
||||
|
||||
public static boolean d(int i) {
|
||||
|
Loading…
Reference in New Issue
Block a user