Initial commit (Forge 1291).
This commit is contained in:
32
patches/net/minecraft/block/BlockNetherrack.java.patch
Normal file
32
patches/net/minecraft/block/BlockNetherrack.java.patch
Normal file
@ -0,0 +1,32 @@
|
||||
--- ../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
|
||||
}
|
Reference in New Issue
Block a user