From 963a85138251b0216815863b7146d716d053a7e7 Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Tue, 9 Mar 2021 20:54:48 +0100 Subject: [PATCH] Remove confusion effect when creating studio worlds --- src/main/java/com/volmit/iris/manager/IrisProject.java | 3 ++- src/main/java/com/volmit/iris/manager/ProjectManager.java | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/volmit/iris/manager/IrisProject.java b/src/main/java/com/volmit/iris/manager/IrisProject.java index 8c78553da..4396a2e24 100644 --- a/src/main/java/com/volmit/iris/manager/IrisProject.java +++ b/src/main/java/com/volmit/iris/manager/IrisProject.java @@ -64,7 +64,6 @@ public class IrisProject } else if(sender.isPlayer()){ sender.player().setGameMode(GameMode.SPECTATOR); sender.player().addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 2000, 10)); - sender.player().addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 2000, 10)); sender.player().spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(C.BLUE + "Creating studio world. Please wait...")); } @@ -93,6 +92,8 @@ public class IrisProject if(IrisSettings.get().getStudio().isOpenVSCode()) { if (!GraphicsEnvironment.isHeadless()) { + Iris.msg("Opening VSCode. You may see the output from VSCode."); + Iris.msg("VSCode output always starts with: '(node:#####) electron'"); Desktop.getDesktop().open(i); } } diff --git a/src/main/java/com/volmit/iris/manager/ProjectManager.java b/src/main/java/com/volmit/iris/manager/ProjectManager.java index 43102fdfe..97d3fa907 100644 --- a/src/main/java/com/volmit/iris/manager/ProjectManager.java +++ b/src/main/java/com/volmit/iris/manager/ProjectManager.java @@ -8,7 +8,6 @@ import com.volmit.iris.object.IrisDimension; import com.volmit.iris.scaffold.cache.AtomicCache; import com.volmit.iris.util.*; import lombok.Data; -import org.bukkit.potion.PotionEffect; import org.bukkit.potion.PotionEffectType; import org.zeroturnaround.zip.ZipUtil; import org.zeroturnaround.zip.commons.FileUtils; @@ -352,8 +351,6 @@ public class ProjectManager { if (sender.isPlayer()) { sender.player().removePotionEffect(PotionEffectType.BLINDNESS); - sender.player().removePotionEffect(PotionEffectType.CONFUSION); - sender.player().addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 20, 1)); } }); }