9
0
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:
CocoTheOwner
2021-03-09 13:41:38 +01:00
parent c20a2ecd9a
commit 41d1714d28
5 changed files with 51 additions and 57 deletions

View File

@@ -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() + ")");
}

View File

@@ -233,7 +233,7 @@ public class CommandIrisWhatObjects extends MortarCommand
stop.add(i);
}
catch(Throwable e)
catch(Throwable ignored)
{
}