1 parent 480f1c0 commit bdf06f1Copy full SHA for bdf06f1
1 file changed
src/azurelib_utils/codec.js
@@ -398,6 +398,15 @@ export function maybeExportItemJson(options = {}, as) {
398
}
399
if (entries) {
400
blockmodel.display = new_display
401
+ const SUBTRACT_Y = 1.5;
402
+
403
+ for (const [slot, value] of Object.entries(new_display)) {
404
+ const tr = value && value.translation;
405
+ if (Array.isArray(tr)) {
406
+ const y = Number(tr[1]) || 0;
407
+ tr[1] = Math.round((y - SUBTRACT_Y) * 100) / 100;
408
+ }
409
410
411
412
if (Project.textures && checkExport("textures", Object.keys(Project.textures).length >= 1)) {
0 commit comments