mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 12:43:52 -07:00
Don't extend pistons until data is set. Fixes BUKKIT-2153
This commit is contained in:
committed by
Wesley Wolfe
parent
050a9276bc
commit
0bde47a173
@@ -417,7 +417,11 @@ public class Chunk {
|
||||
|
||||
if (l != 0) {
|
||||
if (!this.world.isStatic) {
|
||||
Block.byId[l].onPlace(this.world, j2, j, k2);
|
||||
// CraftBukkit start - Don't extend piston until data is set
|
||||
if (!(Block.byId[l] instanceof BlockPiston) || i2 != 0) {
|
||||
Block.byId[l].onPlace(this.world, j2, j, k2);
|
||||
}
|
||||
// CraftBukkit end
|
||||
}
|
||||
|
||||
if (Block.byId[l] instanceof BlockContainer) {
|
||||
|
Reference in New Issue
Block a user