Skip to content

Commit

Permalink
close #4336
Browse files Browse the repository at this point in the history
  • Loading branch information
yrsegal committed Sep 23, 2023
1 parent 45668d9 commit 29a6710
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@
import vazkii.arl.util.ClientTicker;
import vazkii.arl.util.ItemNBTHelper;
import vazkii.quark.base.item.QuarkItem;
import vazkii.quark.base.module.ModuleLoader;
import vazkii.quark.base.module.QuarkModule;
import vazkii.quark.content.mobs.module.StonelingsModule;
import vazkii.quark.content.tools.module.PathfinderMapsModule;
import vazkii.quark.content.tools.module.PathfinderMapsModule.TradeInfo;
import vazkii.quark.content.world.module.GlimmeringWealdModule;

import javax.annotation.Nullable;
import java.util.List;
Expand Down Expand Up @@ -371,8 +374,19 @@ public static MutableComponent getSearchingComponent() {
@Override
public void fillItemCategory(CreativeModeTab group, NonNullList<ItemStack> items) {
if ((isEnabled() && allowedIn(group)) || group == CreativeModeTab.TAB_SEARCH) {
for (TradeInfo trade : PathfinderMapsModule.tradeList)
boolean generatedWeald = false;

for (TradeInfo trade : PathfinderMapsModule.tradeList) {
if (trade.biome.equals(GlimmeringWealdModule.BIOME_NAME))
generatedWeald = true;
items.add(forBiome(trade.biome.toString(), trade.color));
}
if (!generatedWeald &&
ModuleLoader.INSTANCE.isModuleEnabled(StonelingsModule.class) &&
ModuleLoader.INSTANCE.isModuleEnabled(GlimmeringWealdModule.class) &&
StonelingsModule.wealdPathfinderMaps) {
items.add(forBiome(GlimmeringWealdModule.BIOME_NAME.toString(), 0x317546));
}
}
}

Expand Down

0 comments on commit 29a6710

Please sign in to comment.