mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-13 06:39:07 +00:00
Updates for #66: reorganize and relocate some methods and calls
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user