Skip to content

Commit

Permalink
Add additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Aug 20, 2024
1 parent 892baad commit 3ee2275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/ldtteam/structurize/util/BlockUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ else if (worldEntity == null)
{
return false;
}
else if (worldEntity instanceof final MateriallyTexturedBlockEntity mtbe)
else if (worldEntity instanceof final MateriallyTexturedBlockEntity mtbe && tileEntityData.contains(BLOCK_ENTITY_TEXTURE_DATA))
{
return mtbe.getTextureData().equals(MaterialTextureData.CODEC.decode(NbtOps.INSTANCE, tileEntityData.get(BLOCK_ENTITY_TEXTURE_DATA)).getOrThrow().getFirst());
}
Expand Down

0 comments on commit 3ee2275

Please sign in to comment.