From 3f84c0c4b1831d8cbe736cda33fb005a3501a006 Mon Sep 17 00:00:00 2001 From: Kam Date: Sat, 30 Mar 2024 15:30:35 -0400 Subject: [PATCH] Fix Block Text Loading --- src/main/java/noppes/npcs/blocks/tiles/TileScripted.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/noppes/npcs/blocks/tiles/TileScripted.java b/src/main/java/noppes/npcs/blocks/tiles/TileScripted.java index 649675cce..b2d3bf8b4 100644 --- a/src/main/java/noppes/npcs/blocks/tiles/TileScripted.java +++ b/src/main/java/noppes/npcs/blocks/tiles/TileScripted.java @@ -133,14 +133,18 @@ public class TileScripted extends TileEntity implements IScriptBlockHandler { if(scaleZ <= 0) scaleZ = 1; - if(compound.hasKey("Text3")) { + if(compound.hasKey("Text1")) text1.setNBT(compound.getCompoundTag("Text1")); + if(compound.hasKey("Text2")) text2.setNBT(compound.getCompoundTag("Text2")); + if(compound.hasKey("Text3")) text3.setNBT(compound.getCompoundTag("Text3")); + if(compound.hasKey("Text4")) text4.setNBT(compound.getCompoundTag("Text4")); + if(compound.hasKey("Text5")) text5.setNBT(compound.getCompoundTag("Text5")); + if(compound.hasKey("Text6")) text6.setNBT(compound.getCompoundTag("Text6")); - } } @Override