diff --git a/src/main/java/vazkii/quark/content/tools/item/PathfindersQuillItem.java b/src/main/java/vazkii/quark/content/tools/item/PathfindersQuillItem.java index 3d01609008..bac6e70222 100644 --- a/src/main/java/vazkii/quark/content/tools/item/PathfindersQuillItem.java +++ b/src/main/java/vazkii/quark/content/tools/item/PathfindersQuillItem.java @@ -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; @@ -371,8 +374,19 @@ public static MutableComponent getSearchingComponent() { @Override public void fillItemCategory(CreativeModeTab group, NonNullList 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)); + } } }