mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Remove Extra Data producing Null on Scripted Block
This commit is contained in:
1 parent
9cd57ac6cb
commit
de909472b3
1 file changed
-5
@@ -89,10 +89,6 @@ public class TileScripted extends TileEntity implements IScriptBlockHandler {
|
||||
setNBT(compound);
|
||||
setDisplayNBT(compound);
|
||||
timers.readFromNBT(compound);
|
||||
NBTTagCompound extraData = compound.getCompoundTag("ExtraData");
|
||||
if(!extraData.hasNoTags()){
|
||||
getTileData().setTag("CustomNPCsData", extraData);
|
||||
}
|
||||
}
|
||||
|
||||
public void setNBT(NBTTagCompound compound){
|
||||
@@ -153,7 +149,6 @@ public class TileScripted extends TileEntity implements IScriptBlockHandler {
|
||||
getNBT(compound);
|
||||
getDisplayNBT(compound);
|
||||
timers.writeToNBT(compound);
|
||||
compound.setTag("ExtraData",getTileData().getTag("CustomNPCsData"));
|
||||
}
|
||||
|
||||
public NBTTagCompound getNBT(NBTTagCompound compound){
|
||||
|
||||
Reference in new issue
Block a user