Skip to content

Commit

Permalink
Fix client-server desync when applying part offsets, Closes #1448
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Dec 28, 2024
1 parent cd7163c commit c423955
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public <P extends IPartType<P, S>, S extends IPartState<P>> InteractionResult ap
if (newValue <= GeneralConfig.maxPartOffset) {
if (!player.level.isClientSide()) {
partState.setMaxOffset(newValue);
itemStack.shrink(1);
player.displayClientMessage(Component.translatable("item.integrateddynamics.enhancement_offset.increased", newValue), true);
}
itemStack.shrink(1);
player.displayClientMessage(Component.translatable("item.integrateddynamics.enhancement_offset.increased", newValue), true);
return InteractionResult.SUCCESS;
}
player.displayClientMessage(Component.translatable("item.integrateddynamics.enhancement_offset.limit", GeneralConfig.maxPartOffset), true);
Expand Down

0 comments on commit c423955

Please sign in to comment.