Fixed duplicate id issue(workaround) should fix some of the crashing, disabled vehicles for now(causing crashes), disabled some of the getObject spam

This commit is contained in:
Light2
2014-06-18 22:50:48 +02:00
parent e862a86345
commit 4f76d6593b
4 changed files with 15 additions and 8 deletions
+2 -2
View File
@@ -200,8 +200,8 @@ public class PlayerService implements INetworkDispatch {
long[] ids = creature.getAwareObjects().stream().mapToLong(SWGObject::getObjectID).toArray();
for(int i = 0; i < ids.length; i++) {
for(int j = 0; j < ids.length; j++) {
if(ids[i] == ids[j] && i != j)
System.err.println("Detected duplicate ids");
if(ids[i] == ids[j] && i != j)
System.err.println("Detected duplicate ids, Template " + core.objectService.getObject(ids[i]).getTemplate());
}
}
}, 0, 5000, TimeUnit.MILLISECONDS));