Search in sources :

Example 1 with RSWallObject

use of net.runelite.rs.api.RSWallObject in project runelite by runelite.

the class RSRegionMixin method rl$addBoundary.

@Replace("addBoundary")
public void rl$addBoundary(int plane, int x, int y, int hash, Renderable var5, Renderable var6, int var7, int var8, int var9, int var10) {
    rs$addBoundary(plane, x, y, hash, var5, var6, var7, var8, var9, var10);
    Tile tile = getTiles()[plane][x][y];
    if (tile != null) {
        RSWallObject wallObject = (RSWallObject) tile.getWallObject();
        if (wallObject != null) {
            wallObject.setPlane(plane);
        }
    }
}
Also used : Tile(net.runelite.api.Tile) RSWallObject(net.runelite.rs.api.RSWallObject) Replace(net.runelite.api.mixins.Replace)

Aggregations

Tile (net.runelite.api.Tile)1 Replace (net.runelite.api.mixins.Replace)1 RSWallObject (net.runelite.rs.api.RSWallObject)1