diff options
author | feildmaster <admin@feildmaster.com> | 2012-08-08 06:23:43 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-08-08 19:49:10 -0500 |
commit | 27c1c85adb97073b7f048374c8a4356f8ba39c3c (patch) | |
tree | 6fa43cf5c1a06fc2c4ed5f69996ba8287fb5b42b /src/main/java/net/minecraft/server/BlockRedstoneOre.java | |
parent | 8d946b88b3b96be1f6ae6b21bca915b73909e0bb (diff) | |
download | craftbukkit-27c1c85adb97073b7f048374c8a4356f8ba39c3c.tar craftbukkit-27c1c85adb97073b7f048374c8a4356f8ba39c3c.tar.gz craftbukkit-27c1c85adb97073b7f048374c8a4356f8ba39c3c.tar.lz craftbukkit-27c1c85adb97073b7f048374c8a4356f8ba39c3c.tar.xz craftbukkit-27c1c85adb97073b7f048374c8a4356f8ba39c3c.zip |
Implement BlockBreakEvent block experience. Adds BUKKIT-2033
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockRedstoneOre.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockRedstoneOre.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/BlockRedstoneOre.java b/src/main/java/net/minecraft/server/BlockRedstoneOre.java index 123d8fd2..b3716bbd 100644 --- a/src/main/java/net/minecraft/server/BlockRedstoneOre.java +++ b/src/main/java/net/minecraft/server/BlockRedstoneOre.java @@ -77,11 +77,23 @@ public class BlockRedstoneOre extends Block { public void dropNaturally(World world, int i, int j, int k, int l, float f, int i1) { super.dropNaturally(world, i, j, k, l, f, i1); + /* CraftBukkit start - delegate to getExpDrop if (this.getDropType(l, world.random, i1) != this.id) { int j1 = 1 + world.random.nextInt(5); this.g(world, i, j, k, j1); + } */ + } + + public int getExpDrop(World world, int l, int i1) { + if (this.getDropType(l, world.random, i1) != this.id) { + int j1 = 1 + world.random.nextInt(5); + + return j1; } + + return 0; + // CraftBukkit end } private void n(World world, int i, int j, int k) { |