geforkt von Mirrors/Paper
Don't extend pistons until data is set. Fixes BUKKIT-2153
Dieser Commit ist enthalten in:
Ursprung
050a9276bc
Commit
0bde47a173
@ -55,7 +55,7 @@ public class BlockPiston extends Block {
|
|||||||
|
|
||||||
public void onPlace(World world, int i, int j, int k) {
|
public void onPlace(World world, int i, int j, int k) {
|
||||||
if (!world.isStatic && world.getTileEntity(i, j, k) == null) {
|
if (!world.isStatic && world.getTileEntity(i, j, k) == null) {
|
||||||
// this.l(world, i, j, k); // CraftBukkit - don't extend arm of piston that doesn't exist
|
this.l(world, i, j, k);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -417,7 +417,11 @@ public class Chunk {
|
|||||||
|
|
||||||
if (l != 0) {
|
if (l != 0) {
|
||||||
if (!this.world.isStatic) {
|
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) {
|
if (Block.byId[l] instanceof BlockContainer) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren