Merge pull request #2718 from dutta64/gos

Make GameObjectSpawned Immutable with @value
This commit is contained in:
Lucwousin
2020-06-28 03:02:41 +02:00
committed by GitHub
3 changed files with 6 additions and 10 deletions

View File

@@ -170,9 +170,7 @@ public class GameEventManager
.filter(Objects::nonNull)
.forEach(object ->
{
final GameObjectSpawned objectSpawned = new GameObjectSpawned();
objectSpawned.setTile(tile);
objectSpawned.setGameObject(object);
final GameObjectSpawned objectSpawned = new GameObjectSpawned(tile, object);
eventBus.post(GameObjectSpawned.class, objectSpawned);
});