local function GroundTypesMatch(inst, target) local target = target or GetTarget(inst) if target then if target.prefab then return inst:HasTag("aquatic") == target:HasTag("aquatic") elseif target.x and target.y and target.z then --local tar_tile = GetMap():GetTileAtPoint(target:Get()) --return WorldSim:IsWater(tar_tile) == inst:GetIsOnWater() return true end end return trueend