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 @@ -308,10 +308,6 @@ end)
308308
309309
310310local function collect_items (player , player_name )
311- if minetest .is_creative_enabled (player_name ) then
312- return {}
313- end
314-
315311 local items = {}
316312 for _ , cb in ipairs (collect_items_callbacks ) do
317313 table .insert_all (items , cb (player ))
@@ -386,9 +382,15 @@ minetest.register_on_dieplayer(function(player)
386382 local bones_position_message = minetest .settings :get_bool (" bones_position_message" ) == true
387383 local pos_string = minetest .pos_to_string (player :get_pos ())
388384
389- local items = collect_items (player , player_name )
385+ local items = {}
386+
387+ if not minetest .is_creative_enabled (player_name ) and
388+ bones_mode ~= " keep"
389+ then
390+ items = collect_items (player , player_name )
391+ end
390392
391- if bones_mode == " keep " or # items == 0 then
393+ if # items == 0 then
392394 minetest .log (" action" , player_name .. " dies at " .. pos_string ..
393395 " . No bones placed" )
394396 if bones_position_message then
You can’t perform that action at this time.
0 commit comments