mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 06:24:06 +01:00
SPIGOT-4064: Fix BlockPistonRetractEvent for regular pistons
This commit is contained in:
parent
66b62a63b5
commit
fa6e97a8f8
@ -19,10 +19,10 @@
|
|||||||
public class BlockPiston extends BlockDirectional {
|
public class BlockPiston extends BlockDirectional {
|
||||||
|
|
||||||
public static final BlockStateBoolean EXTENDED = BlockProperties.f;
|
public static final BlockStateBoolean EXTENDED = BlockProperties.f;
|
||||||
@@ -109,6 +121,18 @@
|
@@ -111,6 +123,18 @@
|
||||||
b0 = 2;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
+ // CraftBukkit start
|
+ // CraftBukkit start
|
||||||
+ if (!this.sticky) {
|
+ if (!this.sticky) {
|
||||||
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
||||||
@ -35,9 +35,9 @@
|
|||||||
+ }
|
+ }
|
||||||
+ // PAIL: checkME - what happened to setTypeAndData?
|
+ // PAIL: checkME - what happened to setTypeAndData?
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
|
world.playBlockAction(blockposition, this, b0, enumdirection.a());
|
||||||
}
|
}
|
||||||
|
|
||||||
world.playBlockAction(blockposition, this, b0, enumdirection.a());
|
|
||||||
@@ -271,6 +295,48 @@
|
@@ -271,6 +295,48 @@
|
||||||
IBlockData[] aiblockdata = new IBlockData[j];
|
IBlockData[] aiblockdata = new IBlockData[j];
|
||||||
EnumDirection enumdirection1 = flag ? enumdirection : enumdirection.opposite();
|
EnumDirection enumdirection1 = flag ? enumdirection : enumdirection.opposite();
|
||||||
|
Loading…
Reference in New Issue
Block a user