9
0
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:
DanLT
2021-06-24 18:11:56 -08:00
parent 72d07fc3fb
commit 4a11ed6dc4
2 changed files with 0 additions and 3 deletions

View File

@@ -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..."));
}

View File

@@ -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();
}