3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +01:00

Fix a missed case in BlockFire

Dieser Commit ist enthalten in:
Thinkofdeath 2015-02-17 13:47:14 +00:00
Ursprung 726656b864
Commit 1af2a2283a

Datei anzeigen

@ -1,5 +1,5 @@
--- ../work/decompile-8eb82bde//net/minecraft/server/BlockFire.java 2015-02-03 17:46:01.250916418 +0000 --- ../work/decompile-8eb82bde//net/minecraft/server/BlockFire.java 2015-02-17 13:46:14.372294849 +0000
+++ src/main/java/net/minecraft/server/BlockFire.java 2015-02-03 17:46:01.250916418 +0000 +++ src/main/java/net/minecraft/server/BlockFire.java 2015-02-17 13:46:14.372294849 +0000
@@ -4,6 +4,12 @@ @@ -4,6 +4,12 @@
import java.util.Map; import java.util.Map;
import java.util.Random; import java.util.Random;
@ -77,6 +77,15 @@
if (random.nextInt(j + 10) < 5 && !world.isRainingAt(blockposition)) { if (random.nextInt(j + 10) < 5 && !world.isRainingAt(blockposition)) {
int l = j + random.nextInt(5) / 4; int l = j + random.nextInt(5) / 4;
@@ -233,7 +269,7 @@
world.setTypeAndData(blockposition, this.getBlockData().set(BlockFire.AGE, Integer.valueOf(l)), 3);
} else {
- world.setAir(blockposition);
+ fireExtinguished(world, blockposition); // CraftBukkit
}
if (iblockdata.getBlock() == Blocks.TNT) {
@@ -290,7 +326,7 @@ @@ -290,7 +326,7 @@
public void doPhysics(World world, BlockPosition blockposition, IBlockData iblockdata, Block block) { public void doPhysics(World world, BlockPosition blockposition, IBlockData iblockdata, Block block) {