Fixing NullPointerExceptions
Dieser Commit ist enthalten in:
Ursprung
4f2425c8c2
Commit
4d626d7fc9
@ -72,7 +72,7 @@ public class RegionListener implements Listener {
|
||||
public void onExplode(EntityExplodeEvent e) {
|
||||
UUID worldOwner = BauWorld.getWorldUUID(e.getLocation().getWorld());
|
||||
|
||||
if(worldOwner == null || !Bauwelt.getBauwelt(worldOwner).isTNTDmg())
|
||||
if(worldOwner == null || Bauwelt.getBauwelt(worldOwner) == null || !Bauwelt.getBauwelt(worldOwner).isTNTDmg())
|
||||
e.setCancelled(true);
|
||||
}
|
||||
|
||||
@ -80,7 +80,7 @@ public class RegionListener implements Listener {
|
||||
public void onFireDamage(BlockBurnEvent e) {
|
||||
UUID worldOwner = BauWorld.getWorldUUID(e.getBlock().getWorld());
|
||||
|
||||
if(worldOwner == null || !Bauwelt.getBauwelt(worldOwner).isFireDmg())
|
||||
if(worldOwner == null || Bauwelt.getBauwelt(worldOwner) == null || !Bauwelt.getBauwelt(worldOwner).isFireDmg())
|
||||
e.setCancelled(true);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren