mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 05:54:43 +01:00
Fix NPE as described in BUKKIT-245. Thanks snowleo
This commit is contained in:
parent
b08b85bd26
commit
a25151306c
1 changed files with 1 additions and 1 deletions
|
@ -898,7 +898,7 @@ public class CraftWorld implements World {
|
||||||
|
|
||||||
public void explodeBlock(Block block, float yield) {
|
public void explodeBlock(Block block, float yield) {
|
||||||
// First of all, don't explode fire
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
int blockId = block.getTypeId();
|
int blockId = block.getTypeId();
|
||||||
|
|
Loading…
Reference in a new issue