File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -338,10 +338,6 @@ end)
338338
339339
340340local function collect_items (player , player_name )
341- if minetest .is_creative_enabled (player_name ) then
342- return {}
343- end
344-
345341 local items = {}
346342 for _ , cb in ipairs (collect_items_callbacks ) do
347343 table .insert_all (items , cb (player ))
@@ -416,9 +412,15 @@ minetest.register_on_dieplayer(function(player)
416412 local bones_position_message = minetest .settings :get_bool (" bones_position_message" ) == true
417413 local pos_string = minetest .pos_to_string (player :get_pos ())
418414
419- local items = collect_items (player , player_name )
415+ local items = {}
416+
417+ if not minetest .is_creative_enabled (player_name ) and
418+ bones_mode ~= " keep"
419+ then
420+ items = collect_items (player , player_name )
421+ end
420422
421- if bones_mode == " keep " or # items == 0 then
423+ if # items == 0 then
422424 minetest .log (" action" , player_name .. " dies at " .. pos_string ..
423425 " . No bones placed" )
424426 if bones_position_message then
You can’t perform that action at this time.
0 commit comments