From ae387c0bc1b8fdfe48b1f470e2e2ed33176f0a68 Mon Sep 17 00:00:00 2001 From: paypur Date: Mon, 18 Nov 2024 01:01:48 -0500 Subject: [PATCH] changed handles check Took 9 minutes --- .../plugin/craftingtweaks/TinkersCraftingGridProvider.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/slimeknights/tconstruct/plugin/craftingtweaks/TinkersCraftingGridProvider.java b/src/main/java/slimeknights/tconstruct/plugin/craftingtweaks/TinkersCraftingGridProvider.java index 582381efa3..ae7c0a5822 100644 --- a/src/main/java/slimeknights/tconstruct/plugin/craftingtweaks/TinkersCraftingGridProvider.java +++ b/src/main/java/slimeknights/tconstruct/plugin/craftingtweaks/TinkersCraftingGridProvider.java @@ -5,7 +5,8 @@ import net.blay09.mods.craftingtweaks.api.CraftingGridProvider; import net.minecraft.world.inventory.AbstractContainerMenu; import slimeknights.tconstruct.TConstruct; -import slimeknights.tconstruct.tables.menu.CraftingStationContainerMenu; + +import static slimeknights.tconstruct.tables.TinkerTables.craftingStationContainer; public class TinkersCraftingGridProvider implements CraftingGridProvider { @@ -16,7 +17,7 @@ public String getModId() { @Override public boolean handles(AbstractContainerMenu menu) { - return menu instanceof CraftingStationContainerMenu; + return menu.getType().equals(craftingStationContainer.get()); } @Override