mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 10:12:06 -07:00
Update to Minecraft Server 1.2
This commit is contained in:
@@ -23,17 +23,17 @@ public class BlockCactus extends Block {
|
||||
if (world.e(i, j + 1, k)) {
|
||||
int l;
|
||||
|
||||
for (l = 1; world.a(i, j - l, k) == bh; l++) {
|
||||
for (l = 1; world.a(i, j - l, k) == bi; l++) {
|
||||
;
|
||||
}
|
||||
if (l < 3) {
|
||||
int i1 = world.b(i, j, k);
|
||||
|
||||
if (i1 == 15) {
|
||||
world.d(i, j + 1, k, bh);
|
||||
world.b(i, j, k, 0);
|
||||
world.e(i, j + 1, k, bi);
|
||||
world.c(i, j, k, 0);
|
||||
} else {
|
||||
world.b(i, j, k, i1 + 1);
|
||||
world.c(i, j, k, i1 + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -47,12 +47,12 @@ public class BlockCactus extends Block {
|
||||
|
||||
public int a(int i) {
|
||||
if (i == 1) {
|
||||
return bg - 1;
|
||||
return bh - 1;
|
||||
}
|
||||
if (i == 0) {
|
||||
return bg + 1;
|
||||
return bh + 1;
|
||||
} else {
|
||||
return bg;
|
||||
return bh;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ public class BlockCactus extends Block {
|
||||
public void b(World world, int i, int j, int k, int l) {
|
||||
if (!f(world, i, j, k)) {
|
||||
a_(world, i, j, k, world.b(i, j, k));
|
||||
world.d(i, j, k, 0);
|
||||
world.e(i, j, k, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ public class BlockCactus extends Block {
|
||||
} else {
|
||||
int l = world.a(i, j - 1, k);
|
||||
|
||||
return l == Block.aV.bh || l == Block.E.bh;
|
||||
return l == Block.aV.bi || l == Block.E.bi;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user