9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-29 20:09:13 +00:00

修复错误命名

This commit is contained in:
XiaoMoMi
2025-12-03 16:27:31 +08:00
parent daf6988817
commit 5e79d18cf8
3 changed files with 5 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ public abstract class AbstractPackManager implements PackManager {
public static final String NEW_TRIM_MATERIAL = "custom";
public static final Set<String> ALLOWED_VANILLA_EQUIPMENT = Set.of("chainmail", "diamond", "gold", "iron", "netherite");
public static final Set<String> ALLOWED_MODEL_TAGS = Set.of("parent", "ambientocclusion", "display", "textures", "elementConfigs", "gui_light", "overrides");
public static final Set<String> ALLOWED_MODEL_TAGS = Set.of("parent", "ambientocclusion", "display", "textures", "elements", "gui_light", "overrides");
private static final byte[] EMPTY_1X1_IMAGE;
private static final byte[] EMPTY_EQUIPMENT_IMAGE;
@@ -2136,7 +2136,7 @@ public abstract class AbstractPackManager implements PackManager {
.resolve("empty.png");
try {
Files.createDirectories(modelPath.getParent());
Files.writeString(modelPath, "{\"textures\":{\"particle\":\"block/empty\"},\"elementConfigs\":[{\"from\":[0,0,0],\"to\":[0,0,0],\"color\":0,\"faces\":{\"north\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"east\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"south\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"west\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"up\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"down\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"}}}]}");
Files.writeString(modelPath, "{\"textures\":{\"particle\":\"block/empty\"},\"elements\":[{\"from\":[0,0,0],\"to\":[0,0,0],\"color\":0,\"faces\":{\"north\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"east\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"south\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"west\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"up\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"},\"down\":{\"uv\":[0,0,0,0],\"texture\":\"#particle\"}}}]}");
} catch (IOException e) {
this.plugin.logger().severe("Error writing empty block model", e);
}

View File

@@ -11,7 +11,7 @@ public class BBModel {
private String model_identifier;
@SerializedName("visible_box")
private int[] visible_box;
@SerializedName("elementConfigs")
@SerializedName("elements")
private Element[] elements;
@SerializedName("outliner")
private OutLiner[] outliner;

View File

@@ -54,7 +54,7 @@ public final class BlockEntityTickersList extends ObjectArrayList<TickingBlockEn
}
/**
* Removes elementConfigs that have been marked as removed.
* Removes elements that have been marked as removed.
*/
public void removeMarkedEntries() {
if (this.startSearchFromIndex == -1) // No entries in the list, skip
@@ -66,7 +66,7 @@ public final class BlockEntityTickersList extends ObjectArrayList<TickingBlockEn
}
/**
* Removes elementConfigs by their index.
* Removes elements by their index.
*/
private void removeAllByIndex(final int startSearchFromIndex, final IntOpenHashSet c) { // can't use Set<Integer> because we want to avoid autoboxing when using contains
final int requiredMatches = c.size();