mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-04-30 05:01:41 -04:00
follow code style guidelines
This commit is contained in:
parent
10b3b75ba7
commit
32ec3da576
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue