mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-20 15:39:31 +00:00
Make sure sender is player before applying effects
This commit is contained in:
@@ -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));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user