From b5da0dd33f45a53629ab83cd1064a2d3fd3b8a07 Mon Sep 17 00:00:00 2001 From: RePixelatedMC <107539181+RePixelatedMC@users.noreply.github.com> Date: Fri, 4 Apr 2025 16:55:02 +0200 Subject: [PATCH] Iris std map v4 sync --- .../com/volmit/iris/core/commands/CommandStudio.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/volmit/iris/core/commands/CommandStudio.java b/core/src/main/java/com/volmit/iris/core/commands/CommandStudio.java index 0abb77a15..44525e1d8 100644 --- a/core/src/main/java/com/volmit/iris/core/commands/CommandStudio.java +++ b/core/src/main/java/com/volmit/iris/core/commands/CommandStudio.java @@ -404,9 +404,16 @@ public class CommandStudio implements DecreeExecutor { @Param(name = "world", description = "The world to open the generator for", contextual = true) World world ) { - if (noGUI()) return; + if (noGUI()) { + sender().sendMessage(C.GOLD + "GUI Support isn't enabled or supported on this server."); + return; + } - if (!IrisToolbelt.isIrisWorld(world)) { + if (world == null) { + if (noStudio()) return; + world = player().getWorld(); + } + else if (!IrisToolbelt.isIrisWorld(world)) { sender().sendMessage(C.RED + "You need to be in or specify an Iris-generated world!"); return; }