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) {