Skip to content

Commit

Permalink
fix: šŸ› Fix mob charm entity tick code to not trigger on client to preā€¦
Browse files Browse the repository at this point in the history
ā€¦vent CMEs
  • Loading branch information
P3pp3rF1y committed Apr 11, 2024
1 parent 058a2f5 commit 006efd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ loader_version_range=[2,)
mod_id=reliquary
mod_name=Reliquary
mod_license=GNU General Public License v3.0
mod_version=2.0.41
mod_version=2.0.42
mod_group_id=reliquary
mod_authors=x3n0ph0b3, TheMike, P3pp3rF1y
mod_description=Two words: magical swag. Oh, and a gun.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/reliquary/items/MobCharmItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,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;
}

Expand Down

0 comments on commit 006efd0

Please sign in to comment.