From f5803e078abee64498bba8184e52fb388f905ca6 Mon Sep 17 00:00:00 2001 From: nnnik Date: Sat, 6 Feb 2021 21:00:37 +0100 Subject: [PATCH] Fix broken crafting --- .../io/github/samipourquoi/endtech/mixin/MixinItemStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/samipourquoi/endtech/mixin/MixinItemStack.java b/src/main/java/io/github/samipourquoi/endtech/mixin/MixinItemStack.java index 9d7364b..ba9740c 100644 --- a/src/main/java/io/github/samipourquoi/endtech/mixin/MixinItemStack.java +++ b/src/main/java/io/github/samipourquoi/endtech/mixin/MixinItemStack.java @@ -32,7 +32,7 @@ private void incrementCraftedStats(World world, PlayerEntity player, int amount, //noinspection MethodCallSideOnly TagGroup tagGroup = BlockTags.getTagGroup(); - Collection tag = GetTagsForHelper.getTagsForTagGroup(tagGroup, (Block)(Object) this); + Collection tag = GetTagsForHelper.getTagsForTagGroup(tagGroup, (Block)(Object) block); for (Identifier key: tag) { Identifier statTagID = StatsAccessor.CUSTOM_TAGS.get("crafted_" + key.getPath()); player.increaseStat(statTagID, amount);