Skip to content

Commit

Permalink
follow code style guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Gundul42 committed Aug 3, 2024
1 parent 10b3b75 commit 32ec3da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mods/bones/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ local drop = function(pos, itemstack)
end
end

local dropContents = function(pos)
local drop_contents = function(pos)
local inv = minetest.get_meta(pos):get_inventory()

for i = 1, inv:get_size("main") do
Expand Down Expand Up @@ -109,7 +109,8 @@ local bones_def = {
end

if not player:is_player() then
dropContents(pos)
drop_contents(pos)
return
end

if minetest.get_meta(pos):get_string("infotext") == "" then
Expand Down

0 comments on commit 32ec3da

Please sign in to comment.