Updates for #66: reorganize and relocate some methods and calls

This commit is contained in:
James T
2017-12-30 09:01:58 -08:00
parent eea9420192
commit 81767ed5cf
3 changed files with 41 additions and 27 deletions

View File

@@ -102,8 +102,8 @@ public class World implements JSONSerialisable {
for (GameObject object : gameObjects_) {
//Clean up dead objects
if (object.isDead()) {
gameObjects.remove(object);
object.onDeadCallback();
gameObjects.remove(object);
//LogManager.LOGGER.fine("Removed object " + object + " id: " + object.getObjectId());
} else if (object instanceof Updatable) {
((Updatable) object).update();