mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 19:52:55 +01:00
Limit hopper to valid directions. Fixes BUKKIT-3940
This commit is contained in:
parent
06ebe6b705
commit
af964c8331
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue