mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-02-16 18:54:58 +01:00
Remove unnecessary code
This commit is contained in:
parent
21992dc265
commit
d45e1c07bd
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ end
|
||||||
local function damage_anvil_by_falling(pos, distance)
|
local function damage_anvil_by_falling(pos, distance)
|
||||||
for _,object in pairs(minetest.get_objects_inside_radius(pos, 0.8)) do
|
for _,object in pairs(minetest.get_objects_inside_radius(pos, 0.8)) do
|
||||||
local entity = object:get_luaentity()
|
local entity = object:get_luaentity()
|
||||||
if not object:is_player() and entity and entity.name == "__builtin:item" then
|
if entity and entity.name == "__builtin:item" then
|
||||||
object:remove()
|
object:remove()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue