Skip to content

Commit

Permalink
Material.Item: don't try to parse blockstates
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 28, 2021
1 parent 3c862e2 commit 4153285
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -522,11 +522,6 @@ public static void registerTags() {
// -->
registerTag("item", (attribute, object) -> {
ItemTag item = new ItemTag(object, 1);
if (item.getItemMeta() instanceof BlockStateMeta) {
BlockState state = NMSHandler.getBlockHelper().generateBlockState(object.material);
state.setBlockData(object.modernData);
((BlockStateMeta) item.getItemMeta()).setBlockState(state);
}
return item;
});

Expand Down

0 comments on commit 4153285

Please sign in to comment.