diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-10-24 22:53:23 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-10-27 22:19:03 -0400 |
commit | 60819c6693daf19dde68b04af38a4fee8c7da988 (patch) | |
tree | e7bd96a07f0e9d9f1f6b2721ddd1bb5dd71eaf48 /src/main/java/net/minecraft/server/BlockRedstoneTorch.java | |
parent | b9a72531b6e2ccc84bd021bca421255a957d96f7 (diff) | |
download | craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.gz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.lz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.xz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.zip |
Update CraftBukkit to Minecraft 1.4(.2).
Diffstat (limited to 'src/main/java/net/minecraft/server/BlockRedstoneTorch.java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockRedstoneTorch.java | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/main/java/net/minecraft/server/BlockRedstoneTorch.java b/src/main/java/net/minecraft/server/BlockRedstoneTorch.java index 2904401c..e3056277 100644 --- a/src/main/java/net/minecraft/server/BlockRedstoneTorch.java +++ b/src/main/java/net/minecraft/server/BlockRedstoneTorch.java @@ -51,7 +51,7 @@ public class BlockRedstoneTorch extends BlockTorch { this.a((CreativeModeTab) null); } - public int p_() { + public int r_() { return 2; } @@ -81,7 +81,7 @@ public class BlockRedstoneTorch extends BlockTorch { } } - public boolean a(IBlockAccess iblockaccess, int i, int j, int k, int l) { + public boolean b(IBlockAccess iblockaccess, int i, int j, int k, int l) { if (!this.isOn) { return false; } else { @@ -134,7 +134,7 @@ public class BlockRedstoneTorch extends BlockTorch { double d1 = (double) j + random.nextDouble() * 0.6D + 0.2D; double d2 = (double) k + random.nextDouble() * 0.6D + 0.2D; - world.a("smoke", d0, d1, d2, 0.0D, 0.0D, 0.0D); + world.addParticle("smoke", d0, d1, d2, 0.0D, 0.0D, 0.0D); } } } @@ -155,11 +155,11 @@ public class BlockRedstoneTorch extends BlockTorch { public void doPhysics(World world, int i, int j, int k, int l) { super.doPhysics(world, i, j, k, l); - world.a(i, j, k, this.id, this.p_()); + world.a(i, j, k, this.id, this.r_()); } - public boolean c(World world, int i, int j, int k, int l) { - return l == 0 ? this.a(world, i, j, k, l) : false; + public boolean c(IBlockAccess iblockaccess, int i, int j, int k, int l) { + return l == 0 ? this.b(iblockaccess, i, j, k, l) : false; } public int getDropType(int i, Random random, int j) { @@ -169,15 +169,4 @@ public class BlockRedstoneTorch extends BlockTorch { public boolean isPowerSource() { return true; } - - public void a(World world, long i, long j) { - List list = (List) b.get(world); - RedstoneUpdateInfo redstoneupdateinfo; - - if (list != null) { - for (Iterator iterator = list.iterator(); iterator.hasNext(); redstoneupdateinfo.d += i) { - redstoneupdateinfo = (RedstoneUpdateInfo) iterator.next(); - } - } - } } |