Fix idle animation tree not working on client

This commit is contained in:
austin 2023-12-05 22:07:16 -05:00
parent 174126912e
commit b2a7b8e93e
2 changed files with 80 additions and 1 deletions

View File

@ -0,0 +1,77 @@
# Draw Cells
TODO
## High Level Overview
## Major Usage Notes
## Main Classes
## Library Explanation
## Code Organization and Best Practices
#### Startup
#### Usage
## Terminology
## Future Goals

View File

@ -369,7 +369,9 @@ public class CreatureUtils {
rVal.putData(EntityDataStrings.LIFE_STATE, new LifeState(rVal, rawType.getHealthSystem()));
Globals.clientScene.registerEntityToTag(rVal, EntityTags.LIFE_STATE);
//idle tree & generic stuff all creatures have
rVal.putData(EntityDataStrings.IDLE_TREE, new IdleTree(rVal));
IdleTree idleTree = new IdleTree(rVal);
rVal.putData(EntityDataStrings.IDLE_TREE, idleTree);
Globals.clientScene.registerBehaviorTree(idleTree);
Globals.clientScene.registerEntityToTag(rVal, EntityTags.CREATURE);
rVal.putData(EntityDataStrings.DATA_STRING_CREATURE_IS_CREATURE, true);
rVal.putData(EntityDataStrings.DATA_STRING_CREATURE_TYPE, type);