yet another fork update #9

Merged
chmodsayshello merged 760 commits from VoxeLibre/VoxeLibre:master into master 2023-03-26 20:27:31 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit c57f797226 - Show all commits

View File

@ -107,7 +107,7 @@ local function berry_damage_check(obj)
if not p then return end
if not minetest.find_node_near(p,0.4,{"group:sweet_berry_thorny"},true) then return end
local v = obj:get_velocity()
if v.x < 0.1 and v.y < 0.1 and v.z < 0.1 then return end
if math.abs(v.x) < 0.1 and math.abs(v.y) < 0.1 and math.abs(v.z) < 0.1 then return end
mcl_util.deal_damage(obj, 0.5, {type = "sweet_berry"})
end