Skip to content

Commit

Permalink
#3585: Fix mistake converting certain NBT to JSON in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Dec 22, 2023
1 parent f5af111 commit 708c5b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public static JsonElement toJson(SpecificTag tag)
if ( compound.size() == 1 )
{
SpecificTag first = (SpecificTag) compound.get( "" );
if ( first != null )
if ( !first.isError() )
{
jsonList.add( toJson( first ) );
continue;
Expand Down

0 comments on commit 708c5b6

Please sign in to comment.