1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 19:20:29 +00:00

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 final class TrackingLogger
public void warning( String message ) public void warning( String message )
{ {
ok = false;
logger.warning( message ); logger.warning( message );
} }

View File

@ -103,7 +103,7 @@ public class AddTurtleTool implements IUndoableAction
{ {
TrackingLogger trackLog = new TrackingLogger( 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( craftItem.hasTag() && !craftItem.getTag().isEmpty() ) trackLog.warning( "Crafting item has NBT." );
if( toolItem.isEmpty() ) trackLog.error( "Tool item stack is empty." ); if( toolItem.isEmpty() ) trackLog.error( "Tool item stack is empty." );