23w45a fixes and unmaintainable optimized TNT rule pseudofix.

This commit is contained in:
gnembon committed 2023-11-08 21:41:49 +01:00
1 parent e1bd03cbef
commit 5c1da81b9f
9 files changed
+53 -20

No files matched your search

@@ -12,8 +12,8 @@ import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import net.minecraft.commands.CommandRuntimeException;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.network.chat.Component;
import net.minecraft.world.level.storage.LevelResource;
import java.io.BufferedWriter;
@@ -473,4 +473,17 @@ public class AppStoreManager
}
CarpetScriptServer.LOG.info("Downloaded app " + target + " from " + contentUrl);
}
public static class CommandRuntimeException extends RuntimeException {
private final Component message;
public CommandRuntimeException(Component message) {
super(message.getString(), null, false, false);
this.message = message;
}
public Component getComponent() {
return message;
}
}
}