mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Remove confusion effect when creating studio worlds
This commit is contained in:
parent
1d233c5250
commit
963a851382
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user