Skip to content

Commit

Permalink
fix some client crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
techno-sam committed Aug 8, 2024
1 parent 50d817f commit dda32ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ public void sendSubAccountsOnlyToMenu(FriendlyByteBuf buf) {

SubAccount subAccount = subAccounts.remove(subAccountID);
subAccount.setRemoved();
NumismaticsPackets.PACKETS.sendTo(PlayerSelection.all(), BankAccountLabelPacket.remove(subAccount));

if (!clientSide)
NumismaticsPackets.PACKETS.sendTo(PlayerSelection.all(), BankAccountLabelPacket.remove(subAccount));
markDirty();
return subAccount;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ public void createConfigWidgets(WidgetConsumer widgetConsumer) {
}

@Override
@Environment(EnvType.CLIENT)
public void createPurchaseWidgets(WidgetConsumer widgetConsumer) {
widgetConsumer.addRenderableWidget(new SalepointFluidDisplayWidget(68, 55, this));
}
Expand Down

0 comments on commit dda32ba

Please sign in to comment.