Dedupe GameObjectSpawned events when simulating events

This commit is contained in:
Hexagon
2021-03-21 12:24:35 -04:00
committed by Adam
parent b1cfcb3c1e
commit 0e7d11c8dd
@@ -168,6 +168,7 @@ public class GameEventManager
Arrays.stream(tile.getGameObjects())
.filter(Objects::nonNull)
.filter(object -> object.getSceneMinLocation().equals(tile.getSceneLocation()))
.forEach(object ->
{
final GameObjectSpawned objectSpawned = new GameObjectSpawned();