mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Remove blindness when failed studio create
This commit is contained in:
parent
00854e2ea7
commit
8c9684e35c
@ -347,12 +347,18 @@ public class ProjectManager
|
||||
|
||||
public void open(MortarSender sender, String dimm)
|
||||
{
|
||||
try {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
public void open(MortarSender sender, String dimm, Runnable onDone)
|
||||
|
Loading…
x
Reference in New Issue
Block a user