mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-29 01:04:29 +00:00
Bring back /iris std hotload and let studio commands find the studio you are in
- /iris std hotload (aliases reload, h) hotloads the studio you stand in, else the open studio. A pack file that does not parse stops it, the same way it stops the file watcher, and the sender sees which file. - modules, version, update, pkg, profile and importvanilla take an optional dim=<pack>. Without it they use the Iris world you stand in, else the open studio. The silent fall back to the "default" pack is gone. - map and imagemap fall back to the open studio's world from the console or a vanilla world. - The studio map link is printed only when the Studio window could not open.
This commit is contained in:
1 parent
e51f1b8c62
commit
1b08857bb8
8 files changed
+167
-39
No files matched your search
+4
-3
@@ -207,9 +207,10 @@ public final class ModdedStudioCommands {
|
||||
String worldName = level.dimension().identifier().toString();
|
||||
try {
|
||||
StudioBridge bridge = StudioBridges.open(worldName, () -> boundEngine(server, level, openerId), openerId);
|
||||
StudioWindow.show(bridge);
|
||||
IrisModdedCommands.ok(source, IrisLanguage.plain(IrisMessages.STUDIO_MAP_READY,
|
||||
MessageArgument.untrusted("world", worldName), MessageArgument.untrusted("link", bridge.link())));
|
||||
if (!StudioWindow.show(bridge)) {
|
||||
IrisModdedCommands.ok(source, IrisLanguage.plain(IrisMessages.STUDIO_MAP_READY,
|
||||
MessageArgument.untrusted("world", worldName), MessageArgument.untrusted("link", bridge.link())));
|
||||
}
|
||||
return 1;
|
||||
} catch (IOException error) {
|
||||
IrisModdedCommands.fail(source, IrisLanguage.plain(IrisMessages.STUDIO_MAP_FAILED, MessageArgument.untrusted("value", String.valueOf(error.getMessage()))));
|
||||
|
||||
Reference in new issue
Block a user