mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-13 19:25:49 -07:00
Fix invalid data in pistons
This commit is contained in:
@@ -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