mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Fix NPE as described in BUKKIT-245. Thanks snowleo
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user