An EntityRef is different from an Entity. Fortunately, we have a handy method, get(), that will let us find the entity associated with a reference.
- In the moveChest function, find the else section that runs only once the chest’s moving up animation is finished.
- Create a new variable with let called chestLid
- Set it to the entity by calling .get() on your chestLidRef variable.