From 59b4c1a09d484568ca00c7d53e3e01c62c9b1714 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Tue, 12 Sep 2023 22:10:00 -0400 Subject: [PATCH] fixed type filter not actually filtering --- .../muramasa/gregtech/tile/single/TileEntityTypeFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/muramasa/gregtech/tile/single/TileEntityTypeFilter.java b/common/src/main/java/muramasa/gregtech/tile/single/TileEntityTypeFilter.java index cc6c7a308e..ada760c418 100644 --- a/common/src/main/java/muramasa/gregtech/tile/single/TileEntityTypeFilter.java +++ b/common/src/main/java/muramasa/gregtech/tile/single/TileEntityTypeFilter.java @@ -32,7 +32,7 @@ public boolean accepts(ItemStack stack) { if (compare.isEmpty()) return false; compare = compare.substring(0, compare.lastIndexOf("/")); - boolean hasTag = tags.contains(TagUtils.getItemTag(new ResourceLocation(compare))); + boolean hasTag = stack.is(TagUtils.getItemTag(new ResourceLocation(compare))); return blacklist != hasTag; }).orElse(false); }