follow code style guidelines

This commit is contained in:
Gundul 2024-08-03 11:32:11 +02:00
parent 10b3b75ba7
commit 32ec3da576

View file

@ -27,7 +27,7 @@ local drop = function(pos, itemstack)
end end
end end
local dropContents = function(pos) local drop_contents = function(pos)
local inv = minetest.get_meta(pos):get_inventory() local inv = minetest.get_meta(pos):get_inventory()
for i = 1, inv:get_size("main") do for i = 1, inv:get_size("main") do
@ -109,7 +109,8 @@ local bones_def = {
end end
if not player:is_player() then if not player:is_player() then
dropContents(pos) drop_contents(pos)
return
end end
if minetest.get_meta(pos):get_string("infotext") == "" then if minetest.get_meta(pos):get_string("infotext") == "" then