mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-26 21:03:45 +01:00
Remove old code of making anvils destroy items when falling
parent
4afdea56db
commit
5cc4fe955f
@ -276,12 +276,6 @@ local function damage_anvil_by_using(pos)
|
||||
end
|
||||
|
||||
local function damage_anvil_by_falling(pos, distance)
|
||||
for _,object in pairs(minetest.get_objects_inside_radius(pos, 0.8)) do
|
||||
local entity = object:get_luaentity()
|
||||
if entity and entity.name == "__builtin:item" then
|
||||
object:remove()
|
||||
end
|
||||
end
|
||||
local r = math.random(1, 100)
|
||||
if distance > 1 then
|
||||
if r <= (5*distance) then
|
||||
|
Loading…
Reference in New Issue
Block a user