diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-23 02:37:56 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-23 02:37:56 +0000 |
commit | f759e0b60d3a575d31921c930e436af321b0e7e8 (patch) | |
tree | 4b1eb7ac01670854c686b1f6faa2f97ff337f7d7 /src/main/java/net/minecraft/server/BlockJukeBox.java | |
parent | a124bfdab59cc9a9d8369425027e61eccd1d62fb (diff) | |
download | craftbukkit-f759e0b60d3a575d31921c930e436af321b0e7e8.tar craftbukkit-f759e0b60d3a575d31921c930e436af321b0e7e8.tar.gz craftbukkit-f759e0b60d3a575d31921c930e436af321b0e7e8.tar.lz craftbukkit-f759e0b60d3a575d31921c930e436af321b0e7e8.tar.xz craftbukkit-f759e0b60d3a575d31921c930e436af321b0e7e8.zip |
Update to Minecraft 1.3 beta
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockJukeBox.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockJukeBox.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/net/minecraft/server/BlockJukeBox.java b/src/main/java/net/minecraft/server/BlockJukeBox.java index 536df7f0..bf802f1a 100644 --- a/src/main/java/net/minecraft/server/BlockJukeBox.java +++ b/src/main/java/net/minecraft/server/BlockJukeBox.java @@ -38,21 +38,21 @@ public class BlockJukeBox extends Block { } // CraftBukkit end - this.f(world, i, j, k, l); + this.e(world, i, j, k, l); return true; } else { return false; } } - public void f(World world, int i, int j, int k, int l) { + public void e(World world, int i, int j, int k, int l) { world.a((String) null, i, j, k); world.c(i, j, k, 0); int i1 = Item.GOLD_RECORD.id + l - 1; float f = 0.7F; - double d0 = (double) (world.l.nextFloat() * f) + (double) (1.0F - f) * 0.5D; - double d1 = (double) (world.l.nextFloat() * f) + (double) (1.0F - f) * 0.2D + 0.6D; - double d2 = (double) (world.l.nextFloat() * f) + (double) (1.0F - f) * 0.5D; + double d0 = (double) (world.k.nextFloat() * f) + (double) (1.0F - f) * 0.5D; + double d1 = (double) (world.k.nextFloat() * f) + (double) (1.0F - f) * 0.2D + 0.6D; + double d2 = (double) (world.k.nextFloat() * f) + (double) (1.0F - f) * 0.5D; EntityItem entityitem = new EntityItem(world, (double) i + d0, (double) j + d1, (double) k + d2, new ItemStack(i1, 1, 0)); entityitem.c = 10; @@ -62,7 +62,7 @@ public class BlockJukeBox extends Block { public void a(World world, int i, int j, int k, int l, float f) { if (!world.isStatic) { if (l > 0) { - this.f(world, i, j, k, l); + this.e(world, i, j, k, l); } super.a(world, i, j, k, l, f); |