Formation refactored to enum
This commit is contained in:
@@ -13,6 +13,7 @@ import engine.exception.MsgSendException;
|
||||
import engine.math.Bounds;
|
||||
import engine.math.Vector3f;
|
||||
import engine.math.Vector3fImmutable;
|
||||
import engine.mbEnums;
|
||||
import engine.mbEnums.DispatchChannel;
|
||||
import engine.mbEnums.GameObjectType;
|
||||
import engine.mbEnums.ModType;
|
||||
@@ -399,7 +400,7 @@ public enum MovementManager {
|
||||
|
||||
// All checks passed, let's move the player
|
||||
// First get the offset position
|
||||
Vector3f offset = Formation.getOffset(group.getFormation(), pos);
|
||||
Vector3f offset = mbEnums.FormationType.getOffset(group.getFormation(), pos);
|
||||
Vector3fImmutable destination = pc.getEndLoc();
|
||||
// offset forwards or backwards
|
||||
destination = destination.add(faceDir.mult(offset.z));
|
||||
|
||||
Reference in New Issue
Block a user