Dedupe GameObjectSpawned events when simulating events
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user