Fix spectral block NBT writing
This commit is contained in:
parent
99d6dfc513
commit
0d70eb359e
|
@ -35,7 +35,7 @@ public class TileSpectralBlock extends TileEntity implements ITickable
|
||||||
{
|
{
|
||||||
super.writeToNBT(tagCompound);
|
super.writeToNBT(tagCompound);
|
||||||
tagCompound.setInteger(Constants.NBT.TICKS_REMAINING, ticksRemaining);
|
tagCompound.setInteger(Constants.NBT.TICKS_REMAINING, ticksRemaining);
|
||||||
tagCompound.setString(Constants.NBT.CONTAINED_BLOCK_NAME, containedBlockName);
|
tagCompound.setString(Constants.NBT.CONTAINED_BLOCK_NAME, Strings.isNullOrEmpty(containedBlockName) ? "" : containedBlockName);
|
||||||
tagCompound.setInteger(Constants.NBT.CONTAINED_BLOCK_META, containedBlockMeta);
|
tagCompound.setInteger(Constants.NBT.CONTAINED_BLOCK_META, containedBlockMeta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue