1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +01:00

Don't check protection of air when placing bones (#2964)

This commit is contained in:
OgelGames 2023-07-06 18:17:35 +10:00 committed by GitHub
parent d86435d86c
commit 110c23560e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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