mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
Update for 1.0.0
This commit is contained in:
@@ -20,6 +20,10 @@ public class BlockLever extends Block {
|
||||
return false;
|
||||
}
|
||||
|
||||
public int c() {
|
||||
return 12;
|
||||
}
|
||||
|
||||
public boolean canPlace(World world, int i, int j, int k, int l) {
|
||||
return l == 1 && world.e(i, j - 1, k) ? true : (l == 2 && world.e(i, j, k + 1) ? true : (l == 3 && world.e(i, j, k - 1) ? true : (l == 4 && world.e(i + 1, j, k) ? true : l == 5 && world.e(i - 1, j, k))));
|
||||
}
|
||||
@@ -55,7 +59,7 @@ public class BlockLever extends Block {
|
||||
}
|
||||
|
||||
if (i1 == -1) {
|
||||
this.g(world, i, j, k, world.getData(i, j, k));
|
||||
this.b(world, i, j, k, world.getData(i, j, k), 0);
|
||||
world.setTypeId(i, j, k, 0);
|
||||
} else {
|
||||
world.setData(i, j, k, i1 + j1);
|
||||
@@ -92,7 +96,7 @@ public class BlockLever extends Block {
|
||||
}
|
||||
|
||||
if (flag) {
|
||||
this.g(world, i, j, k, world.getData(i, j, k));
|
||||
this.b(world, i, j, k, world.getData(i, j, k), 0);
|
||||
world.setTypeId(i, j, k, 0);
|
||||
}
|
||||
}
|
||||
@@ -100,7 +104,7 @@ public class BlockLever extends Block {
|
||||
|
||||
private boolean g(World world, int i, int j, int k) {
|
||||
if (!this.canPlace(world, i, j, k)) {
|
||||
this.g(world, i, j, k, world.getData(i, j, k));
|
||||
this.b(world, i, j, k, world.getData(i, j, k), 0);
|
||||
world.setTypeId(i, j, k, 0);
|
||||
return false;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user