This commit is contained in:
listik committed 2026-11-02 22:22:40 +03:00
1 parent ec69c6c8d7
commit ccd24dc5ec
10 files changed
+500 -340

No files matched your search

@@ -787,13 +787,16 @@ local function onCast(player, power)
return
end
local world = Config.WorldAt(hrp.Position)
local target, dist = nil, 0
if world then
target, dist = findWater(hrp, world, power)
local can = Config.CanCastFrom(world, hrp.Position)
if can ~= true then
remote:FireClient(player, "CastFail")
notify(player, can, Color3.fromRGB(255, 200, 120))
return
end
local target, dist = findWater(hrp, world, power)
if not target then
remote:FireClient(player, "CastFail")
notify(player, world and "Подойди ближе к воде (или к лунке)!" or "Здесь нет рыбы — иди в один из миров 🌍", Color3.fromRGB(255, 200, 120))
notify(player, "Подойди ближе к воде (или к лунке)!", Color3.fromRGB(255, 200, 120))
return
end
if #data.items >= bagCapacity(player, data) then