From ee0715a9405b58500a1d8e65fe4d4954c73f4278 Mon Sep 17 00:00:00 2001 From: Tooze Date: Sun, 7 Jun 2026 23:36:52 -0400 Subject: [PATCH] forceWalk "clip" moved away from a deprecated function --- Server/src/main/core/api/ContentAPI.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Server/src/main/core/api/ContentAPI.kt b/Server/src/main/core/api/ContentAPI.kt index 35405ba03..8dc6ed47e 100644 --- a/Server/src/main/core/api/ContentAPI.kt +++ b/Server/src/main/core/api/ContentAPI.kt @@ -65,6 +65,7 @@ import core.game.world.map.Direction import core.game.world.map.Location import core.game.world.map.RegionManager import core.game.world.map.RegionManager.getRegionChunk +import core.game.world.map.path.ClipMaskSupplier import core.game.world.map.path.Pathfinder import core.game.world.map.zone.MapZone import core.game.world.map.zone.ZoneBorders @@ -1438,7 +1439,8 @@ fun reinitVarps (player: Player) { */ fun forceWalk(entity: Entity, dest: Location, type: String) { if (type == "clip") { - ForceMovement(entity, dest, 10, 10).run() + val NO_CLIP = ClipMaskSupplier { _, _, _ -> 0 } + Pathfinder.find(entity.location,entity.size(),dest,true,Pathfinder.SMART,NO_CLIP ).walk(entity) return } val pathfinder = when (type) {