fix: click sets entity slot index

This commit is contained in:
cha0s 2019-05-23 05:38:33 -05:00
parent 038b5828bd
commit eb6261d561

View File

@ -88,7 +88,9 @@ const HotbarComponent = ({app}) => {
)} )}
key={i} key={i}
onClick={(event) => { onClick={(event) => {
setActive(i); if (selfEntity) {
selfEntity.activeSlotIndex = i;
}
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
return false; return false;