Fix Bug: Cannot pickup weed plant

cannot pickup weed plant 
because distance from player coords and weedplant object 
the distance is too small 
should be 1.5 not 1.0
This commit is contained in:
NRTnarathip
2022-02-17 22:34:31 +07:00
committed by GitHub
parent e46ae322c0
commit ee8f995b3e
+1 -1
View File
@@ -80,7 +80,7 @@ CreateThread(function()
local nearbyObject, nearbyID
for i=1, #weedPlants, 1 do
if #(coords - GetEntityCoords(weedPlants[i])) < 1 then
if #(coords - GetEntityCoords(weedPlants[i])) < 1.5 then
nearbyObject, nearbyID = weedPlants[i], i
end
end