diff options
author | Nate Mortensen <nate.richard.mortensen@gmail.com> | 2013-07-01 06:03:00 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-07-01 12:10:06 -0500 |
commit | 6c09066e224ac85b8a6464eaf8f53edfeb4beda4 (patch) | |
tree | 573e05f4b148cb1891a1d3839175e501e6257442 /src/main/java/net/minecraft/server/BlockVine.java | |
parent | f887b76a259e12468b28d82d1eced93f0b73bd6d (diff) | |
download | craftbukkit-6c09066e224ac85b8a6464eaf8f53edfeb4beda4.tar craftbukkit-6c09066e224ac85b8a6464eaf8f53edfeb4beda4.tar.gz craftbukkit-6c09066e224ac85b8a6464eaf8f53edfeb4beda4.tar.lz craftbukkit-6c09066e224ac85b8a6464eaf8f53edfeb4beda4.tar.xz craftbukkit-6c09066e224ac85b8a6464eaf8f53edfeb4beda4.zip |
Update CraftBukkit to 1.6.1
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockVine.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockVine.java | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/src/main/java/net/minecraft/server/BlockVine.java b/src/main/java/net/minecraft/server/BlockVine.java index 2b05ac50..66dcfbb6 100644 --- a/src/main/java/net/minecraft/server/BlockVine.java +++ b/src/main/java/net/minecraft/server/BlockVine.java @@ -29,65 +29,66 @@ public class BlockVine extends Block { } public void updateShape(IBlockAccess iblockaccess, int i, int j, int k) { + float f = 0.0625F; int l = iblockaccess.getData(i, j, k); - float f = 1.0F; float f1 = 1.0F; float f2 = 1.0F; - float f3 = 0.0F; + float f3 = 1.0F; float f4 = 0.0F; float f5 = 0.0F; + float f6 = 0.0F; boolean flag = l > 0; if ((l & 2) != 0) { - f3 = Math.max(f3, 0.0625F); - f = 0.0F; + f4 = Math.max(f4, 0.0625F); f1 = 0.0F; - f4 = 1.0F; f2 = 0.0F; f5 = 1.0F; + f3 = 0.0F; + f6 = 1.0F; flag = true; } if ((l & 8) != 0) { - f = Math.min(f, 0.9375F); - f3 = 1.0F; - f1 = 0.0F; + f1 = Math.min(f1, 0.9375F); f4 = 1.0F; f2 = 0.0F; f5 = 1.0F; + f3 = 0.0F; + f6 = 1.0F; flag = true; } if ((l & 4) != 0) { - f5 = Math.max(f5, 0.0625F); - f2 = 0.0F; - f = 0.0F; - f3 = 1.0F; + f6 = Math.max(f6, 0.0625F); + f3 = 0.0F; f1 = 0.0F; f4 = 1.0F; + f2 = 0.0F; + f5 = 1.0F; flag = true; } if ((l & 1) != 0) { - f2 = Math.min(f2, 0.9375F); - f5 = 1.0F; - f = 0.0F; - f3 = 1.0F; + f3 = Math.min(f3, 0.9375F); + f6 = 1.0F; f1 = 0.0F; f4 = 1.0F; + f2 = 0.0F; + f5 = 1.0F; flag = true; } if (!flag && this.d(iblockaccess.getTypeId(i, j + 1, k))) { - f1 = Math.min(f1, 0.9375F); - f4 = 1.0F; - f = 0.0F; - f3 = 1.0F; - f2 = 0.0F; + f2 = Math.min(f2, 0.9375F); f5 = 1.0F; + f1 = 0.0F; + f4 = 1.0F; + f3 = 0.0F; + f6 = 1.0F; } - this.a(f, f1, f2, f3, f4, f5); + this.a(f1, f2, f3, f4, f5, f6); } public AxisAlignedBB b(World world, int i, int j, int k) { @@ -300,7 +301,7 @@ public class BlockVine extends Block { } public void a(World world, EntityHuman entityhuman, int i, int j, int k, int l) { - if (!world.isStatic && entityhuman.cd() != null && entityhuman.cd().id == Item.SHEARS.id) { + if (!world.isStatic && entityhuman.bt() != null && entityhuman.bt().id == Item.SHEARS.id) { entityhuman.a(StatisticList.C[this.id], 1); this.b(world, i, j, k, new ItemStack(Block.VINE, 1, 0)); } else { |