1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-26 07:03:22 +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:
SquidDev 2019-06-12 21:03:11 +01:00
parent 309cbdb8be
commit bc07dfad2e

View File

@ -453,7 +453,7 @@ public ClientComputer getClientComputer()
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 );
}