diff --git a/gradle.properties b/gradle.properties index 80144b95..5a58fca0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.jvmargs=-Xmx2048m minecraft_version=1.20.1 forge_version=47.1.5 -mod_version=2.0.40 +mod_version=2.0.41 jei_mc_version=1.20.1-forge jei_version=15.1.0.19 curios_version=5.2.0-beta.3+1.20.1 diff --git a/src/main/java/reliquary/items/MobCharmItem.java b/src/main/java/reliquary/items/MobCharmItem.java index 570799e0..19b090a3 100644 --- a/src/main/java/reliquary/items/MobCharmItem.java +++ b/src/main/java/reliquary/items/MobCharmItem.java @@ -101,7 +101,7 @@ private void onEntityTargetedEvent(LivingChangeTargetEvent event) { } private void onLivingUpdate(LivingEvent.LivingTickEvent event) { - if (!(event.getEntity() instanceof Mob entity)) { + if (event.getEntity().level().isClientSide() || !(event.getEntity() instanceof Mob entity)) { return; }