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

@@ -432,9 +432,7 @@ public abstract class RSTileMixin implements RSTile
logger.trace("Game object spawn: {}", current.getId());
GameObjectSpawned gameObjectSpawned = new GameObjectSpawned();
gameObjectSpawned.setTile(this);
gameObjectSpawned.setGameObject(current);
GameObjectSpawned gameObjectSpawned = new GameObjectSpawned(this, current);
client.getCallbacks().post(GameObjectSpawned.class, gameObjectSpawned);
}
else