Skip to content

Commit

Permalink
added check for generateOre boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed May 3, 2023
1 parent 9cf1dca commit 2c3fac4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand All @@ -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()));
}
});
});
}
Expand Down

0 comments on commit 2c3fac4

Please sign in to comment.