From 2c3fac462dcdf21e09da6318c00c462cceec6d02 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Wed, 3 May 2023 14:20:16 -0400 Subject: [PATCH] added check for generateOre boolean --- .../integration/rei/AntimatterREIClientPlugin.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/muramasa/antimatter/integration/rei/AntimatterREIClientPlugin.java b/common/src/main/java/muramasa/antimatter/integration/rei/AntimatterREIClientPlugin.java index 484e49fee..b2f437964 100644 --- a/common/src/main/java/muramasa/antimatter/integration/rei/AntimatterREIClientPlugin.java +++ b/common/src/main/java/muramasa/antimatter/integration/rei/AntimatterREIClientPlugin.java @@ -97,7 +97,7 @@ public void registerBasicEntryFiltering(BasicFilteringRule rule) { if (!AntimatterConfig.CLIENT.SHOW_ALL_ORES){ AntimatterMaterialTypes.ORE.all().forEach(m -> { AntimatterAPI.all(StoneType.class, s -> { - if (s != AntimatterStoneTypes.STONE){ + if (s != AntimatterStoneTypes.STONE && s.generateOre){ Block ore = AntimatterMaterialTypes.ORE.get().get(m, s).asBlock(); if (ore instanceof BlockOre){ rule.hide(EntryStack.of(VanillaEntryTypes.ITEM, new ItemStack(ore))); @@ -115,7 +115,9 @@ public void registerBasicEntryFiltering(BasicFilteringRule rule) { if (!AntimatterConfig.CLIENT.SHOW_ROCKS){ AntimatterMaterialTypes.ROCK.all().forEach(m -> { AntimatterAPI.all(StoneType.class, s -> { - rule.hide(EntryStack.of(VanillaEntryTypes.ITEM, AntimatterMaterialTypes.ROCK.get().get(m, s).asStack())); + if (s.generateOre) { + rule.hide(EntryStack.of(VanillaEntryTypes.ITEM, AntimatterMaterialTypes.ROCK.get().get(m, s).asStack())); + } }); }); }