Fix Block Text Loading

This commit is contained in:
Kam committed 2024-03-30 15:30:35 -04:00
1 parent 675267c5b1
commit 3f84c0c4b1
1 file changed
+6 -2
@@ -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