@@ -9,20 +9,20 @@
|
||||
public class BlockMinecartDetector extends BlockMinecartTrackAbstract {
|
||||
|
||||
public static final BlockStateEnum<BlockPropertyTrackPosition> SHAPE = BlockProperties.ad;
|
||||
@@ -57,6 +59,16 @@
|
||||
}
|
||||
@@ -58,6 +60,16 @@
|
||||
}
|
||||
|
||||
IBlockData iblockdata1;
|
||||
+ // CraftBukkit start
|
||||
+ if (flag != flag1) {
|
||||
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
||||
IBlockData iblockdata1;
|
||||
+ // CraftBukkit start
|
||||
+ if (flag != flag1) {
|
||||
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
||||
+
|
||||
+ BlockRedstoneEvent eventRedstone = new BlockRedstoneEvent(block, flag ? 15 : 0, flag1 ? 15 : 0);
|
||||
+ world.getServer().getPluginManager().callEvent(eventRedstone);
|
||||
+ BlockRedstoneEvent eventRedstone = new BlockRedstoneEvent(block, flag ? 15 : 0, flag1 ? 15 : 0);
|
||||
+ world.getServer().getPluginManager().callEvent(eventRedstone);
|
||||
+
|
||||
+ flag1 = eventRedstone.getNewCurrent() > 0;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+ flag1 = eventRedstone.getNewCurrent() > 0;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
|
||||
if (flag1 && !flag) {
|
||||
iblockdata1 = (IBlockData) iblockdata.set(BlockMinecartDetector.POWERED, true);
|
||||
if (flag1 && !flag) {
|
||||
iblockdata1 = (IBlockData) iblockdata.set(BlockMinecartDetector.POWERED, true);
|
||||
|
||||
Reference in New Issue
Block a user