1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-18 22:25:12 +00:00

fix: another part of syncing with Tweaked codebase

This commit is contained in:
Nikita Savyolov
2021-10-03 22:54:13 +03:00
parent d4f1e34023
commit 861a9e199d
24 changed files with 631 additions and 84 deletions

View File

@@ -79,4 +79,19 @@ public class ClientTerminal implements ITerminal
terminalChanged = true;
}
}
public void readDescription( NbtCompound nbt )
{
colour = nbt.getBoolean( "colour" );
if( nbt.contains( "terminal" ) )
{
NbtCompound terminal = nbt.getCompound( "terminal" );
resizeTerminal( terminal.getInt( "term_width" ), terminal.getInt( "term_height" ) );
this.terminal.readFromNBT( terminal );
}
else
{
deleteTerminal();
}
}
}