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

Fix NPE as described in BUKKIT-245. Thanks snowleo

Dieser Commit ist enthalten in:
Andrew Ardill 2011-12-08 10:26:39 +11:00
Ursprung b08b85bd26
Commit a25151306c

Datei anzeigen

@ -898,7 +898,7 @@ public class CraftWorld implements World {
public void explodeBlock(Block block, float yield) {
// First of all, don't explode fire
if (block.getType().equals(Material.FIRE)) {
if (block.getType().equals(org.bukkit.Material.AIR) || block.getType().equals(org.bukkit.Material.FIRE)) {
return;
}
int blockId = block.getTypeId();