mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-07 22:13:40 -04:00
Fixed null pointer in ObjectAwareness for buildout areas
This commit is contained in:
@@ -198,10 +198,14 @@ public class ObjectAwareness extends Service {
|
||||
transform.setSpeed((float) (obj.getMovementScale()*7.3));
|
||||
}
|
||||
BuildoutArea area = obj.getBuildoutArea();
|
||||
area.adjustLocation(newLocation);
|
||||
if (area == null)
|
||||
System.err.println("Unknown buildout area at: " + obj.getWorldLocation());
|
||||
else
|
||||
newLocation = area.adjustLocation(newLocation);
|
||||
new PlayerTransformedIntent(obj, obj.getParent(), null, obj.getLocation(), newLocation).broadcast();
|
||||
move(obj, newLocation, true);
|
||||
area.readjustLocation(newLocation);
|
||||
if (area != null)
|
||||
newLocation = area.readjustLocation(newLocation);
|
||||
obj.sendDataTransforms(transform);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user