Skip to content

Commit

Permalink
forceRestock check client
Browse files Browse the repository at this point in the history
  • Loading branch information
plusls committed Dec 26, 2021
1 parent b482b88 commit ffedbf4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected MixinSpectralArrowEntity(EntityType<? extends PersistentProjectileEnti
}
@Inject(method = "onHit", at=@At(value = "RETURN"))
private void forceRestock(LivingEntity target, CallbackInfo ci) {
if (PcaSettings.forceRestock && target instanceof MerchantEntity merchantEntity) {
if (PcaSettings.forceRestock && !target.world.isClient && target instanceof MerchantEntity merchantEntity) {
for(TradeOffer tradeOffer : merchantEntity.getOffers()) {
tradeOffer.resetUses();
}
Expand Down

0 comments on commit ffedbf4

Please sign in to comment.