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 @@ private synchronized void unmountDisk( IComputerAccess computer )
private void updateBlockState()
{
if( remove ) return;
if( remove || level == null ) return;
if( !diskStack.isEmpty() )
{

View File

@ -438,7 +438,7 @@ private void updateBlockState()
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;