mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Prevent getting engine when disabled
This commit is contained in:
parent
68214cf16f
commit
5003f69e8e
@ -36,15 +36,22 @@ public class EnginePlayer {
|
|||||||
{
|
{
|
||||||
for(IrisEffect j : region.getEffects())
|
for(IrisEffect j : region.getEffects())
|
||||||
{
|
{
|
||||||
j.apply(player, getEngine());
|
try {
|
||||||
|
j.apply(player, getEngine());
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
player.sendMessage("Unable to play Engine");
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(biome != null)
|
if(biome != null)
|
||||||
{
|
{
|
||||||
for(IrisEffect j : biome.getEffects())
|
try {
|
||||||
{
|
|
||||||
j.apply(player, getEngine());
|
j.apply(player, getEngine());
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
player.sendMessage("Unable to play Engine");
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user