mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 16:37:45 +00:00
Fix Block Text Loading
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user