use of net.runelite.rs.api.RSGroundObject in project runelite by runelite.
the class RSRegionMixin method rl$groundObjectSpawned.
@Replace("groundObjectSpawned")
public void rl$groundObjectSpawned(int plane, int x, int y, int hash, Renderable var5, int var6, int var7) {
rs$groundObjectSpawned(plane, x, y, hash, var5, var6, var7);
Tile tile = getTiles()[plane][x][y];
if (tile != null) {
RSGroundObject groundObject = (RSGroundObject) tile.getGroundObject();
if (groundObject != null) {
groundObject.setPlane(plane);
}
}
}
Aggregations