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)
308
308
309
309
310
310
local function collect_items (player , player_name )
311
- if minetest .is_creative_enabled (player_name ) then
312
- return {}
313
- end
314
-
315
311
local items = {}
316
312
for _ , cb in ipairs (collect_items_callbacks ) do
317
313
table .insert_all (items , cb (player ))
@@ -386,9 +382,15 @@ minetest.register_on_dieplayer(function(player)
386
382
local bones_position_message = minetest .settings :get_bool (" bones_position_message" ) == true
387
383
local pos_string = minetest .pos_to_string (player :get_pos ())
388
384
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
390
392
391
- if bones_mode == " keep " or # items == 0 then
393
+ if # items == 0 then
392
394
minetest .log (" action" , player_name .. " dies at " .. pos_string ..
393
395
" . No bones placed" )
394
396
if bones_position_message then
You can’t perform that action at this time.
0 commit comments