mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 03:00:30 +00:00
Make sure all writeDescription methods are pure
We don't want to be firing block updates or anything from here! That runs the ricks of causing CMEs and the like. Fixes #245
This commit is contained in:
parent
309cbdb8be
commit
bc07dfad2e
@ -453,7 +453,7 @@ public abstract class TileComputerBase extends TileGeneric implements IComputerT
|
||||
protected void writeDescription( @Nonnull NBTTagCompound nbt )
|
||||
{
|
||||
super.writeDescription( nbt );
|
||||
nbt.setInteger( "instanceID", createServerComputer().getInstanceID() );
|
||||
if( m_instanceID >= 0 ) nbt.setInteger( "instanceID", m_instanceID );
|
||||
if( m_label != null ) nbt.setString( "label", m_label );
|
||||
if( m_computerID >= 0 ) nbt.setInteger( "computerID", m_computerID );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user