From eb6261d5610f6722e7e955fb07d7ca9de3a178b5 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 23 May 2019 05:38:33 -0500 Subject: [PATCH] fix: click sets entity slot index --- client/ui/menu/hotbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/ui/menu/hotbar.js b/client/ui/menu/hotbar.js index 78a36b3..2eb5963 100644 --- a/client/ui/menu/hotbar.js +++ b/client/ui/menu/hotbar.js @@ -88,7 +88,9 @@ const HotbarComponent = ({app}) => { )} key={i} onClick={(event) => { - setActive(i); + if (selfEntity) { + selfEntity.activeSlotIndex = i; + } event.preventDefault(); event.stopPropagation(); return false;