mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fix invalid data in pistons
This commit is contained in:
1 parent
b416dd337f
commit
989acd0afb
1 file changed
+1
@@ -218,6 +218,7 @@ public class BlockPiston extends Block {
|
||||
}
|
||||
|
||||
public static int d(int i) {
|
||||
if ((i & 7) >= Facing.a.length) return 0; // CraftBukkit - check for AIOOB on piston data
|
||||
return i & 7;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user