mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-07 22:13:40 -04:00
Fixed update transform issue in buildings
This commit is contained in:
@@ -82,7 +82,7 @@ public class ClientBuildoutService extends Service {
|
||||
|
||||
@Override
|
||||
public boolean start() {
|
||||
objects.forEach(ObjectCreatedIntent::broadcast);
|
||||
objects.forEach(ClientBuildoutService::broadcast);
|
||||
objects.clear();
|
||||
return super.start();
|
||||
}
|
||||
@@ -92,6 +92,12 @@ public class ClientBuildoutService extends Service {
|
||||
return Collections.unmodifiableList(objects);
|
||||
}
|
||||
|
||||
private static void broadcast(SWGObject obj) {
|
||||
ObjectCreatedIntent.broadcast(obj);
|
||||
obj.getContainedObjects().forEach(ClientBuildoutService::broadcast);
|
||||
obj.getSlottedObjects().forEach(ClientBuildoutService::broadcast);
|
||||
}
|
||||
|
||||
private void loadClientObjects() {
|
||||
if (!objects.isEmpty())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user