mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Make sure sender is player before applying effects
This commit is contained in:
parent
a4bbad3243
commit
dd20a06f80
@ -349,9 +349,11 @@ public class ProjectManager
|
|||||||
{
|
{
|
||||||
open(sender, dimm, () ->
|
open(sender, dimm, () ->
|
||||||
{
|
{
|
||||||
sender.player().removePotionEffect(PotionEffectType.BLINDNESS);
|
if (sender.isPlayer()) {
|
||||||
sender.player().removePotionEffect(PotionEffectType.CONFUSION);
|
sender.player().removePotionEffect(PotionEffectType.BLINDNESS);
|
||||||
sender.player().addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 20, 1));
|
sender.player().removePotionEffect(PotionEffectType.CONFUSION);
|
||||||
|
sender.player().addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 20, 1));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user