Don't fatally error if CraftTweaker items have NBT

CT now adds {Damage:0}, which means turtle upgrades not registered any
more for tools. Fixes #647.
This commit is contained in:
Jonathan Coates 2021-01-06 18:08:19 +00:00
parent 72340defe4
commit 2c9f51db89
2 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,6 @@ public boolean isOk()
public void warning( String message )
{
ok = false;
logger.warning( message );
}

View File

@ -103,7 +103,7 @@ public boolean validate( ILogger logger )
{
TrackingLogger trackLog = new TrackingLogger( logger );
if( craftItem.isEmpty() ) trackLog.warning( "Crafting item stack is empty." );
if( craftItem.isEmpty() ) trackLog.error( "Crafting item stack is empty." );
if( craftItem.hasTag() && !craftItem.getTag().isEmpty() ) trackLog.warning( "Crafting item has NBT." );
if( toolItem.isEmpty() ) trackLog.error( "Tool item stack is empty." );