@@ -1,15 +1,15 @@
|
||||
--- a/net/minecraft/server/BlockRedstoneTorch.java
|
||||
+++ b/net/minecraft/server/BlockRedstoneTorch.java
|
||||
@@ -6,6 +6,8 @@
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
+import org.bukkit.event.block.BlockRedstoneEvent; // CraftBukkit
|
||||
+
|
||||
public class BlockRedstoneTorch extends BlockTorch {
|
||||
|
||||
public static final BlockStateBoolean LIT = BlockProperties.o;
|
||||
@@ -65,8 +67,24 @@
|
||||
public static final BlockStateBoolean LIT = BlockProperties.r;
|
||||
@@ -70,8 +72,24 @@
|
||||
list.remove(0);
|
||||
}
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
+ // CraftBukkit end
|
||||
world.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockRedstoneTorch.LIT, false), 3);
|
||||
if (a(world, blockposition, true)) {
|
||||
world.a((EntityHuman) null, blockposition, SoundEffects.BLOCK_REDSTONE_TORCH_BURNOUT, SoundCategory.BLOCKS, 0.5F, 2.6F + (world.random.nextFloat() - world.random.nextFloat()) * 0.8F);
|
||||
@@ -83,6 +101,15 @@
|
||||
world.triggerEffect(1502, blockposition, 0);
|
||||
@@ -79,6 +97,15 @@
|
||||
}
|
||||
}
|
||||
} else if (!flag && !a(world, blockposition, false)) {
|
||||
|
||||
Reference in New Issue
Block a user