From cc8c78cb300f6fb73946e8f84066348871101010 Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 24 Jun 2024 05:02:13 -0500 Subject: [PATCH] refactor: tidy --- app/react-components/ui.jsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/react-components/ui.jsx b/app/react-components/ui.jsx index 90a13b2..fd57e19 100644 --- a/app/react-components/ui.jsx +++ b/app/react-components/ui.jsx @@ -154,13 +154,7 @@ export default function Ui({disconnected}) { if (update.Inventory) { const newHotbarSlots = emptySlots(); for (let i = 1; i < 11; ++i) { - if (entity.Inventory.slots[i]) { - const {qty, source} = entity.Inventory.slots[i]; - newHotbarSlots[i - 1] = { - image: source + '/icon.png', - qty, - }; - } + newHotbarSlots[i - 1] = entity.Inventory.slots[i]; } setHotbarSlots(newHotbarSlots); }