Skip to content

Commit

Permalink
changed handles check
Browse files Browse the repository at this point in the history
Took 9 minutes
  • Loading branch information
paypur committed Nov 18, 2024
1 parent 27373fe commit ae387c0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -16,7 +17,7 @@ public String getModId() {

@Override
public boolean handles(AbstractContainerMenu menu) {
return menu instanceof CraftingStationContainerMenu;
return menu.getType().equals(craftingStationContainer.get());
}

@Override
Expand Down

0 comments on commit ae387c0

Please sign in to comment.