Skip to content

Commit 71e8838

Browse files
committed
Fix #691: don't perform server tick on client-side.
1 parent fa50a0b commit 71e8838

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/src/main/java/noobanidus/mods/lootr/common/entity/LootrChestMinecartEntity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ public boolean isInvulnerableTo(DamageSource source) {
116116
@Override
117117
public void tick() {
118118
super.tick();
119-
LootrAPI.handleProviderTick(this);
119+
if (!this.level().isClientSide()) {
120+
LootrAPI.handleProviderTick(this);
121+
}
120122
}
121123

122124
@Override

0 commit comments

Comments
 (0)