don't display cape when no loaded
This commit is contained in:
parent
8707db57dc
commit
82781d1d45
1 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,9 @@ customEvents.on('gameLoaded', () => {
|
|||
if (viewer.entities.entities[e.id]?.playerObject) {
|
||||
const { playerObject } = viewer.entities.entities[e.id]
|
||||
playerObject.backEquipment = e.equipment.some((item) => item?.name === 'elytra') ? 'elytra' : 'cape'
|
||||
if (playerObject.cape.map === null) {
|
||||
playerObject.cape.visible = false
|
||||
}
|
||||
// todo (easy, important) elytra flying animation
|
||||
// todo cleanup states
|
||||
const WALKING_SPEED = 0.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue