9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-23 17:09:19 +00:00

修复低版本模型生成重复问题

This commit is contained in:
XiaoMoMi
2025-05-11 04:05:58 +08:00
parent 7039f33396
commit 84a8fd8692
3 changed files with 30 additions and 0 deletions

View File

@@ -71,6 +71,7 @@
}
}
],
"gui_light": "front",
"display": {
"thirdperson_righthand": {
"rotation": [0, 60, 0],
@@ -89,6 +90,19 @@
"firstperson_lefthand": {
"rotation": [0, 90, -25],
"translation": [-2.5, 7.5, 4.75]
},
"ground": {
"rotation": [0, 0, 45],
"translation": [-2, 2, 0],
"scale": [0.5, 0.5, 0.5]
},
"gui": {
"rotation": [0, 0, -45],
"translation": [5, 5, 0],
"scale": [1.25, 1.25, 1.25]
},
"fixed": {
"translation": [0, 6, 0]
}
}
}

View File

@@ -71,6 +71,7 @@
}
}
],
"gui_light": "front",
"display": {
"thirdperson_righthand": {
"rotation": [0, 90, 180],
@@ -91,6 +92,19 @@
"rotation": [0, 90, -25],
"translation": [0.75, -5, -0.75],
"scale": [0.5, 0.5, 0.5]
},
"ground": {
"rotation": [0, 0, 45],
"translation": [-2, 2, 0],
"scale": [0.5, 0.5, 0.5]
},
"gui": {
"rotation": [0, 0, -45],
"translation": [5, 5, 0],
"scale": [1.25, 1.25, 1.25]
},
"fixed": {
"translation": [0, 6, 0]
}
}
}

View File

@@ -1085,6 +1085,8 @@ public abstract class AbstractPackManager implements PackManager {
if (originalItemModel == null) {
plugin.logger().warn("Failed to load item model for [" + key + "] (legacy)");
continue;
} else {
originalItemModel = originalItemModel.deepCopy();
}
JsonArray overrides;
if (originalItemModel.has("overrides")) {