1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-03-22 19:36:59 +00:00

Don't update block states when there is no world

Fixes #856
This commit is contained in:
Jonathan Coates 2021-07-15 12:13:38 +01:00
parent aa5fbb2980
commit 56d8a5d585
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
2 changed files with 2 additions and 2 deletions

View File

@ -442,7 +442,7 @@ public final class TileDiskDrive extends TileGeneric implements DefaultInventory
private void updateBlockState()
{
if( remove ) return;
if( remove || level == null ) return;
if( !diskStack.isEmpty() )
{

View File

@ -438,7 +438,7 @@ public final class TilePrinter extends TileGeneric implements DefaultSidedInvent
private void updateBlockState( boolean top, boolean bottom )
{
if( remove ) return;
if( remove || level == null ) return;
BlockState state = getBlockState();
if( state.getValue( BlockPrinter.TOP ) == top & state.getValue( BlockPrinter.BOTTOM ) == bottom ) return;