Implemented 1.6!

This commit is contained in:
Dinnerbone
2011-05-26 13:48:22 +01:00
parent f463453d73
commit 6903f20242
76 changed files with 2699 additions and 2266 deletions

View File

@@ -32,6 +32,10 @@ public class BlockRedstoneWire extends Block {
return false;
}
public boolean b() {
return false;
}
public boolean canPlace(World world, int i, int j, int k) {
return world.d(i, j - 1, k);
}
@@ -113,10 +117,10 @@ public class BlockRedstoneWire extends Block {
// CraftBukkit end
if (k1 != l1) {
world.j = true;
world.o = true;
world.setData(i, j, k, l1);
world.b(i, j, k, i, j, k);
world.j = false;
world.o = false;
for (i2 = 0; i2 < 4; ++i2) {
j2 = i;
@@ -279,7 +283,7 @@ public class BlockRedstoneWire extends Block {
boolean flag = this.canPlace(world, i, j, k);
if (!flag) {
this.a_(world, i, j, k, i1);
this.b_(world, i, j, k, i1);
world.setTypeId(i, j, k, 0);
} else {
this.g(world, i, j, k);
@@ -294,10 +298,10 @@ public class BlockRedstoneWire extends Block {
}
public boolean c(World world, int i, int j, int k, int l) {
return !this.a ? false : this.b(world, i, j, k, l);
return !this.a ? false : this.a(world, i, j, k, l);
}
public boolean b(IBlockAccess iblockaccess, int i, int j, int k, int l) {
public boolean a(IBlockAccess iblockaccess, int i, int j, int k, int l) {
if (!this.a) {
return false;
} else if (iblockaccess.getData(i, j, k) == 0) {