mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-27 11:09:06 +00:00
Stop blinding people
This commit is contained in:
@@ -65,7 +65,6 @@ public class IrisProject
|
||||
return;
|
||||
} else if(sender.isPlayer()){
|
||||
sender.player().setGameMode(GameMode.SPECTATOR);
|
||||
sender.player().addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 500, 10));
|
||||
sender.player().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(C.BLUE + "Creating studio world. Please wait..."));
|
||||
}
|
||||
|
||||
|
||||
@@ -363,11 +363,9 @@ public class ProjectManager
|
||||
open(sender, dimm, () ->
|
||||
{
|
||||
if (sender.isPlayer()) {
|
||||
sender.player().removePotionEffect(PotionEffectType.BLINDNESS);
|
||||
}
|
||||
});
|
||||
} catch (Exception e){
|
||||
sender.player().removePotionEffect(PotionEffectType.BLINDNESS);
|
||||
sender.sendMessage("Error when creating studio world:");
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user