Merge pull request #225 from KAMKEEL/codex/fix-translate-y-and-z-in-linked-item-gui

Fix linked item translate axes
This commit is contained in:
Kam authored and GitHub committed 2025-10-27 23:42:46 -04:00
commit 803c631f99
1 file changed
+10
@@ -172,6 +172,16 @@ public class ScriptLinkedItem extends ScriptCustomizableItem implements IItemLin
return this.itemDisplay.translateX != null ? this.itemDisplay.translateX : this.linkedItem.display.translateX;
}
@Override
public Float getTranslateY() {
return this.itemDisplay.translateY != null ? this.itemDisplay.translateY : this.linkedItem.display.translateY;
}
@Override
public Float getTranslateZ() {
return this.itemDisplay.translateZ != null ? this.itemDisplay.translateZ : this.linkedItem.display.translateZ;
}
public NBTTagCompound getMCNbt() {
NBTTagCompound compound = super.getMCNbt();
compound.setTag("ItemData", this.getItemNBT(new NBTTagCompound()));