Skip to content

Commit

Permalink
fix: don't show recipe viewer warning when emi is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
williambl committed Jul 19, 2022
1 parent ab02dd7 commit bdcc9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/williambl/haema/ritual/RitualModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ object RitualModule: ModInitializer {

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

0 comments on commit bdcc9a3

Please sign in to comment.