mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +01:00
Fix invalid data in pistons
This commit is contained in:
parent
b416dd337f
commit
989acd0afb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user