mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
Implemented 1.6!
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user