Skip to content

Commit bdcc9a3

Browse files
committed
fix: don't show recipe viewer warning when emi is installed
1 parent ab02dd7 commit bdcc9a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/williambl/haema/ritual/RitualModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ object RitualModule: ModInitializer {
6363

6464
override fun onInitialize() {
6565
RitualTableUseEvent.EVENT.register { _: BlockState, world: World, _: BlockPos, player: PlayerEntity, hand: Hand, _: BlockHitResult ->
66-
if (player.getStackInHand(hand).item == PatchouliItems.BOOK && world.isClient && !FabricLoader.getInstance().isModLoaded("roughlyenoughitems")) {
66+
if (player.getStackInHand(hand).item == PatchouliItems.BOOK && world.isClient && !FabricLoader.getInstance().isModLoaded("roughlyenoughitems") && !FabricLoader.getInstance().isModLoaded("emi")) {
6767
player.sendMessage(TranslatableText("gui.haema.message.no_recipe_viewer"), true);
6868
}
6969
}

0 commit comments

Comments
 (0)