diff --git a/docs/src/progress/currenttarget.md b/docs/src/progress/currenttarget.md index 44c780cd..508f7889 100644 --- a/docs/src/progress/currenttarget.md +++ b/docs/src/progress/currenttarget.md @@ -1,27 +1,8 @@ @page currenttarget Current Target -+ Upgrade editor - - Position & Rotation gismo tools -+ Spawn underground - - Script engine ability to play effects - - Script engine ability to play animations on an actor - - Script engine ability to apply cameras - - Script engine ability to show/hide ui -+ Lock first room behind interacting with a door - - Tutorial hint for interacting with things - - Implement doors -+ Lock second room behind picking up an old sword and hitting a switch - - Old sword item - - Switch that requires being hit - - Door that can be locked -+ Portal to tutorial hub area - - Portals - - Switching realms - - Loading realms on demand + rearchitecture + fix the vibes - Ticketed randomizer node for BTs to more heavily weight attacking and waiting + non-feedback requirements @@ -35,5 +16,6 @@ - Spawn player in a town with a quest to complete a nearby dungeon + bug fixes + Can't drop item out of inventory + unreproducible bugs diff --git a/docs/src/progress/renderertodo.md b/docs/src/progress/renderertodo.md index f03ac1e8..3f0409fa 100644 --- a/docs/src/progress/renderertodo.md +++ b/docs/src/progress/renderertodo.md @@ -1477,6 +1477,7 @@ Crafting panel recipe filtering by tag Stone Axe crafting ClientSynchronizationManager null tree fix Update ui test data +Fix playerless scene updates diff --git a/src/main/java/electrosphere/entity/state/hitbox/HitboxCollectionState.java b/src/main/java/electrosphere/entity/state/hitbox/HitboxCollectionState.java index c106604c..c20416f7 100644 --- a/src/main/java/electrosphere/entity/state/hitbox/HitboxCollectionState.java +++ b/src/main/java/electrosphere/entity/state/hitbox/HitboxCollectionState.java @@ -322,8 +322,11 @@ public class HitboxCollectionState { if(parent != null && !isServer && EntityUtils.getActor(parent) != null){ if(!this.geoms.isEmpty()){ Vector3d entityPosition = EntityUtils.getPosition(parent); - Vector3d playerPos = EntityUtils.getPosition(Globals.playerEntity); - double distanceToPlayer = entityPosition.distance(playerPos); + double distanceToPlayer = 0; + if(Globals.playerEntity != null){ + Vector3d playerPos = EntityUtils.getPosition(Globals.playerEntity); + distanceToPlayer = entityPosition.distance(playerPos); + } if(distanceToPlayer > CLIENT_DISABLE_DISTANCE){ if(this.body != null){ this.destroyBody();