@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/level/block/piston/BlockPiston.java
|
||||
+++ b/net/minecraft/world/level/block/piston/BlockPiston.java
|
||||
@@ -36,6 +36,14 @@
|
||||
@@ -39,6 +39,14 @@
|
||||
import net.minecraft.world.phys.shapes.VoxelShapeCollision;
|
||||
import net.minecraft.world.phys.shapes.VoxelShapes;
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
+
|
||||
public class BlockPiston extends BlockDirectional {
|
||||
|
||||
public static final BlockStateBoolean EXTENDED = BlockProperties.g;
|
||||
@@ -132,6 +140,18 @@
|
||||
public static final BlockStateBoolean EXTENDED = BlockProperties.EXTENDED;
|
||||
@@ -139,6 +147,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
+ // CraftBukkit start
|
||||
+ if (!this.sticky) {
|
||||
+ if (!this.isSticky) {
|
||||
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
||||
+ BlockPistonRetractEvent event = new BlockPistonRetractEvent(block, ImmutableList.<org.bukkit.block.Block>of(), CraftBlock.notchToBlockFace(enumdirection));
|
||||
+ world.getServer().getPluginManager().callEvent(event);
|
||||
@@ -31,10 +31,10 @@
|
||||
+ }
|
||||
+ // PAIL: checkME - what happened to setTypeAndData?
|
||||
+ // CraftBukkit end
|
||||
world.playBlockAction(blockposition, this, b0, enumdirection.c());
|
||||
world.playBlockAction(blockposition, this, b0, enumdirection.b());
|
||||
}
|
||||
|
||||
@@ -308,6 +328,48 @@
|
||||
@@ -317,6 +337,48 @@
|
||||
IBlockData[] aiblockdata = new IBlockData[list.size() + list2.size()];
|
||||
EnumDirection enumdirection1 = flag ? enumdirection : enumdirection.opposite();
|
||||
int j = 0;
|
||||
|
||||
Reference in New Issue
Block a user