Make GameObjectSpawned Immutable with @Value

This commit is contained in:
Dutta64
2020-06-27 05:47:00 -06:00
committed by Lucwousin
parent 956fc953ea
commit 3c76031534
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