fix: click sets entity slot index
This commit is contained in:
parent
038b5828bd
commit
eb6261d561
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user