fix: click sets entity slot index
This commit is contained in:
parent
038b5828bd
commit
eb6261d561
|
@ -88,7 +88,9 @@ const HotbarComponent = ({app}) => {
|
|||
)}
|
||||
key={i}
|
||||
onClick={(event) => {
|
||||
setActive(i);
|
||||
if (selfEntity) {
|
||||
selfEntity.activeSlotIndex = i;
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user