Dedupe GameObjectSpawned events when simulating events

This commit is contained in:
Hexagon
2021-03-20 12:17:17 -03:00
committed by Adam
parent b1cfcb3c1e
commit 0e7d11c8dd

View File

@@ -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();