From fec717cbe1e3869be837e85029863d213c25b73d Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 29 Sep 2024 06:31:30 -0500 Subject: [PATCH] refactor: distribute to destination --- app/react/components/ui.jsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/react/components/ui.jsx b/app/react/components/ui.jsx index 5da2d4f..3534c6a 100644 --- a/app/react/components/ui.jsx +++ b/app/react/components/ui.jsx @@ -465,7 +465,15 @@ function Ui({disconnected}) { else if (hadBufferSlot.current) { client.send({ type: 'Action', - payload: {type: 'swapSlots', value: [0, mainEntityRef.current, i + 1]}, + payload: { + type: 'distribute', + value: [ + 0, + [ + [mainEntityRef.current, i + 1], + ], + ], + }, }); } else {