mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-28 19:49:06 +00:00
Cleanup and prevent some potential NPEs
This commit is contained in:
@@ -38,6 +38,7 @@ public class CommandIrisWhatBiome extends MortarCommand
|
||||
{
|
||||
|
||||
IrisAccess g = IrisWorlds.access(w);
|
||||
assert g != null;
|
||||
IrisBiome b = g.getBiome(p.getLocation().getBlockX(), p.getLocation().getBlockY(), p.getLocation().getBlockZ());
|
||||
sender.sendMessage("IBiome: " + b.getLoadKey() + " (" + b.getDerivative().name() + ")");
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ public class CommandIrisWhatObjects extends MortarCommand
|
||||
stop.add(i);
|
||||
}
|
||||
|
||||
catch(Throwable e)
|
||||
catch(Throwable ignored)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user