diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-14 13:31:10 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-14 13:31:10 +0000 |
commit | 2761b598452d992b05a384528b54298ab1166456 (patch) | |
tree | fae206cadbc7acd2607b42ac9dc3d962dcaa795a /src/main/java/net/minecraft/server/BlockFurnace.java | |
parent | e6e50ddf9b7cb9fe4fb5e8102acf117db2db6f2a (diff) | |
download | craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar.gz craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar.lz craftbukkit-2761b598452d992b05a384528b54298ab1166456.tar.xz craftbukkit-2761b598452d992b05a384528b54298ab1166456.zip |
Update to Minecraft Server 1.2
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockFurnace.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockFurnace.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/main/java/net/minecraft/server/BlockFurnace.java b/src/main/java/net/minecraft/server/BlockFurnace.java index 77c7e0dc..4435bdb3 100644 --- a/src/main/java/net/minecraft/server/BlockFurnace.java +++ b/src/main/java/net/minecraft/server/BlockFurnace.java @@ -16,11 +16,11 @@ public class BlockFurnace extends BlockContainer { protected BlockFurnace(int i, boolean flag) { super(i, Material.d); a = flag; - bg = 45; + bh = 45; } public int a(int i, Random random) { - return Block.aB.bh; + return Block.aB.bi; } public void e(World world, int i, int j, int k) { @@ -47,20 +47,20 @@ public class BlockFurnace extends BlockContainer { if (Block.o[k1] && !Block.o[j1]) { byte0 = 4; } - world.b(i, j, k, ((int) (byte0))); + world.c(i, j, k, ((int) (byte0))); } public int a(int i) { if (i == 1) { - return Block.t.bh; + return bh + 17; } if (i == 0) { - return Block.t.bh; + return bh + 17; } if (i == 3) { - return bg - 1; + return bh - 1; } else { - return bg; + return bh; } } @@ -78,7 +78,7 @@ public class BlockFurnace extends BlockContainer { if (bie.isCancelled()) return true; // CraftBukkit end - TileEntityFurnace tileentityfurnace = (TileEntityFurnace) world.l(i, j, k); + TileEntityFurnace tileentityfurnace = (TileEntityFurnace) world.m(i, j, k); entityplayer.a(tileentityfurnace); return true; @@ -87,14 +87,14 @@ public class BlockFurnace extends BlockContainer { public static void a(boolean flag, World world, int i, int j, int k) { int l = world.b(i, j, k); - TileEntity tileentity = world.l(i, j, k); + TileEntity tileentity = world.m(i, j, k); if (flag) { - world.d(i, j, k, Block.aC.bh); + world.e(i, j, k, Block.aC.bi); } else { - world.d(i, j, k, Block.aB.bh); + world.e(i, j, k, Block.aB.bi); } - world.b(i, j, k, l); + world.c(i, j, k, l); world.a(i, j, k, tileentity); } @@ -106,16 +106,16 @@ public class BlockFurnace extends BlockContainer { int l = MathHelper.b((double) ((entityliving.v * 4F) / 360F) + 0.5D) & 3; if (l == 0) { - world.b(i, j, k, 2); + world.c(i, j, k, 2); } if (l == 1) { - world.b(i, j, k, 5); + world.c(i, j, k, 5); } if (l == 2) { - world.b(i, j, k, 3); + world.c(i, j, k, 3); } if (l == 3) { - world.b(i, j, k, 4); + world.c(i, j, k, 4); } } } |