3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

Fixed rain not putting out fires due to a mistranslation issue.

Dieser Commit ist enthalten in:
EvilSeph 2011-04-25 21:08:52 -04:00
Ursprung d2a4c510b3
Commit b2c558eab1

Datei anzeigen

@ -50,6 +50,10 @@ public class BlockFire extends Block {
public void a(World world, int i, int j, int k, Random random) {
boolean flag = world.getTypeId(i, j - 1, k) == Block.NETHERRACK.id;
if (!flag && world.v() && (world.q(i, j, k) || world.q(i - 1, j, k) || world.q(i + 1, j, k) || world.q(i, j, k - 1) || world.q(i, j, k + 1))) {
world.setTypeId(i, j, k, 0);
} else {
int l = world.getData(i, j, k);
if (l < 15) {
@ -92,7 +96,7 @@ public class BlockFire extends Block {
int i2 = this.h(world, i1, k1, j1);
if (i2 > 0 && random.nextInt(l1) <= i2) {
if (i2 > 0 && random.nextInt(l1) <= i2 && (!world.v() || !world.q(i1, k1, j1)) && !world.q(i1 - 1, k1, k) && !world.q(i1 + 1, k1, j1) && !world.q(i1, k1, j1 - 1) && !world.q(i1, k1, j1 + 1)) {
// CraftBukkit start - Call to stop spread of fire.
org.bukkit.block.Block theBlock = cworld.getBlockAt(i1, k1, j1);
@ -112,6 +116,7 @@ public class BlockFire extends Block {
}
}
}
}
if (l == 15) {
this.a(world, i + 1, j, k, 1, random);
@ -140,7 +145,7 @@ public class BlockFire extends Block {
}
// CraftBukkit end
if (random.nextInt(2) == 0) {
if (random.nextInt(2) == 0 && !world.q(i, j, k)) {
world.setTypeId(i, j, k, this.id);
} else {
world.setTypeId(i, j, k, 0);
@ -173,7 +178,7 @@ public class BlockFire extends Block {
}
}
public boolean d() {
public boolean n_() {
return false;
}