From 14f442d3341569b243db686c94c50c9dd3358e85 Mon Sep 17 00:00:00 2001 From: XiaoMoMi Date: Tue, 11 Nov 2025 23:12:06 +0800 Subject: [PATCH] add block z support --- .../craftengine/core/block/AbstractBlockManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/net/momirealms/craftengine/core/block/AbstractBlockManager.java b/core/src/main/java/net/momirealms/craftengine/core/block/AbstractBlockManager.java index 59941bb1f..e9ff489b8 100644 --- a/core/src/main/java/net/momirealms/craftengine/core/block/AbstractBlockManager.java +++ b/core/src/main/java/net/momirealms/craftengine/core/block/AbstractBlockManager.java @@ -752,7 +752,10 @@ public abstract class AbstractBlockManager extends AbstractModelGenerator implem json.addProperty("x", ResourceConfigUtils.getAsInt(section.get("x"), "x")); if (section.containsKey("y")) json.addProperty("y", ResourceConfigUtils.getAsInt(section.get("y"), "y")); - if (section.containsKey("uvlock")) json.addProperty("uvlock", ResourceConfigUtils.getAsBoolean(section.get("uvlock"), "uvlock")); + if (section.containsKey("z")) + json.addProperty("z", ResourceConfigUtils.getAsInt(section.get("z"), "z")); + if (section.containsKey("uvlock")) + json.addProperty("uvlock", ResourceConfigUtils.getAsBoolean(section.get("uvlock"), "uvlock")); if (section.containsKey("weight")) json.addProperty("weight", ResourceConfigUtils.getAsInt(section.get("weight"), "weight")); Map generationMap = MiscUtils.castToMap(section.get("generation"), true);