Terasology / Behaviors

Store for an assortment of behaviors that can be applied to creatures
https://terasology.github.io/Behaviors
6 stars 18 forks source link

chore: apply workaround for @In malfunction in actions #102

Closed jdrueckert closed 2 years ago

jdrueckert commented 2 years ago

Contributes to https://github.com/MovingBlocks/Terasology/issues/4981

What this PR does

Use initialization in construct() consistently throughout behavior actions

@Override
public void construct(Actor actor) {
    if (world == null) {
        world = CoreRegistry.get(WorldProvider.class);
    }
}

Additional chores

jdrueckert commented 2 years ago

FlexibleMovement as a replacement for PathFinding