Skip to content

Commit

Permalink
Merge pull request #4 from End-Tech/client_fix
Browse files Browse the repository at this point in the history
Fix broken crafting
  • Loading branch information
samipourquoi authored Feb 6, 2021
2 parents 6e0bb76 + f5803e0 commit 8ef9798
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private void incrementCraftedStats(World world, PlayerEntity player, int amount,

//noinspection MethodCallSideOnly
TagGroup<Block> tagGroup = BlockTags.getTagGroup();
Collection<Identifier> tag = GetTagsForHelper.getTagsForTagGroup(tagGroup, (Block)(Object) this);
Collection<Identifier> tag = GetTagsForHelper.getTagsForTagGroup(tagGroup, (Block)(Object) block);
for (Identifier key: tag) {
Identifier statTagID = StatsAccessor.CUSTOM_TAGS.get("crafted_" + key.getPath());
player.increaseStat(statTagID, amount);
Expand Down

0 comments on commit 8ef9798

Please sign in to comment.