mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +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())
|
||||
{
|
||||
try {
|
||||
j.apply(player, getEngine());
|
||||
} catch (NullPointerException e) {
|
||||
player.sendMessage("Unable to play Engine");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(biome != null)
|
||||
{
|
||||
for(IrisEffect j : biome.getEffects())
|
||||
{
|
||||
try {
|
||||
j.apply(player, getEngine());
|
||||
} catch (NullPointerException e) {
|
||||
player.sendMessage("Unable to play Engine");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user