Skip to content

Commit

Permalink
Fix recursive packets
Browse files Browse the repository at this point in the history
  • Loading branch information
ktpatient committed Sep 8, 2024
1 parent 9c0cdc8 commit 6b8f2f3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public static void keyPressedAction(KeyPressedPayload payload, IPayloadContext c
}
public static void setAugmentDataAction(SetAugmentDataPayload payload, IPayloadContext context){
context.enqueueWork(()->{
AugmentHelper.setId(context.player(), Slot.GetValue(payload.slot()), payload.augmentId());
// Whoops, recursive packets bring sent
// AugmentHelper.setId(context.player(), Slot.GetValue(payload.slot()), payload.augmentId());
ModJam.LOGGER.info("Syncing data {}", payload.slot());
});
}
Expand Down

0 comments on commit 6b8f2f3

Please sign in to comment.