You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
--- ../src-base/minecraft/net/minecraft/block/BlockNetherrack.java |
|
+++ ../src-work/minecraft/net/minecraft/block/BlockNetherrack.java |
|
@@ -4,6 +4,11 @@ |
|
import net.minecraft.block.material.Material; |
|
import net.minecraft.creativetab.CreativeTabs; |
|
|
|
+// CraftBukkit start |
|
+import org.bukkit.event.block.BlockRedstoneEvent; |
|
+import net.minecraft.world.World; |
|
+// CraftBukkit end |
|
+ |
|
public class BlockNetherrack extends Block |
|
{ |
|
private static final String __OBFID = "CL_00000275"; |
|
@@ -18,4 +23,17 @@ |
|
{ |
|
return MapColor.netherrackColor; |
|
} |
|
+ |
|
+ // CraftBukkit start |
|
+ public void doPhysics(World world, int i, int j, int k, int l) |
|
+ { |
|
+ if (Block.getBlockById(l) != null && Block.getBlockById(l).canProvidePower()) |
|
+ { |
|
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(i, j, k); |
|
+ int power = block.getBlockPower(); |
|
+ BlockRedstoneEvent event = new BlockRedstoneEvent(block, power, power); |
|
+ world.getServer().getPluginManager().callEvent(event); |
|
+ } |
|
+ } |
|
+ // CraftBukkit end |
|
}
|
|
|