From 6dec95156e11eb336f20519cc3dc7ca369db11e5 Mon Sep 17 00:00:00 2001 From: LatvianModder Date: Fri, 30 Aug 2024 10:47:31 +0300 Subject: [PATCH] Fixed outdated gson bug (again) --- .../dev/latvian/mods/kubejs/server/ServerScriptManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/latvian/mods/kubejs/server/ServerScriptManager.java b/src/main/java/dev/latvian/mods/kubejs/server/ServerScriptManager.java index d85da4906..7924a4110 100644 --- a/src/main/java/dev/latvian/mods/kubejs/server/ServerScriptManager.java +++ b/src/main/java/dev/latvian/mods/kubejs/server/ServerScriptManager.java @@ -163,7 +163,7 @@ public void loadAdditional() { } } - if (!furnaceFuelsJson.isEmpty()) { + if (furnaceFuelsJson.size() > 0) { var json = new JsonObject(); json.add("values", furnaceFuelsJson); internalDataPack.json(ResourceLocation.fromNamespaceAndPath("neoforge", "data_maps/item/furnace_fuels.json"), json);