don't check protection of air when placing bones

This commit is contained in:
OgelGames 2022-06-23 21:43:31 +10:00 committed by GitHub
parent 986b65775f
commit ccbbf6e585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ minetest.register_on_dieplayer(function(player)
-- check if it's possible to place bones, if not find space near player
if bones_mode == "bones" and not may_replace(pos, player) then
local air = minetest.find_node_near(pos, 1, {"air"})
if air and not minetest.is_protected(air, player_name) then
if air then
pos = air
else
bones_mode = "drop"