Remove confusion effect when creating studio worlds

This commit is contained in:
CocoTheOwner 2021-03-09 20:54:48 +01:00
parent 1d233c5250
commit 963a851382
2 changed files with 2 additions and 4 deletions

View File

@ -64,7 +64,6 @@ public class IrisProject
} else if(sender.isPlayer()){ } else if(sender.isPlayer()){
sender.player().setGameMode(GameMode.SPECTATOR); sender.player().setGameMode(GameMode.SPECTATOR);
sender.player().addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 2000, 10)); 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...")); 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(IrisSettings.get().getStudio().isOpenVSCode())
{ {
if (!GraphicsEnvironment.isHeadless()) { 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); Desktop.getDesktop().open(i);
} }
} }

View File

@ -8,7 +8,6 @@ import com.volmit.iris.object.IrisDimension;
import com.volmit.iris.scaffold.cache.AtomicCache; import com.volmit.iris.scaffold.cache.AtomicCache;
import com.volmit.iris.util.*; import com.volmit.iris.util.*;
import lombok.Data; import lombok.Data;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType; import org.bukkit.potion.PotionEffectType;
import org.zeroturnaround.zip.ZipUtil; import org.zeroturnaround.zip.ZipUtil;
import org.zeroturnaround.zip.commons.FileUtils; import org.zeroturnaround.zip.commons.FileUtils;
@ -352,8 +351,6 @@ public class ProjectManager
{ {
if (sender.isPlayer()) { if (sender.isPlayer()) {
sender.player().removePotionEffect(PotionEffectType.BLINDNESS); sender.player().removePotionEffect(PotionEffectType.BLINDNESS);
sender.player().removePotionEffect(PotionEffectType.CONFUSION);
sender.player().addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 20, 1));
} }
}); });
} }