Skip to content

Commit

Permalink
Don't check protection of air when placing bones (#2964)
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed Jul 6, 2023
1 parent d86435d commit 110c235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/bones/init.lua
Expand Up @@ -228,7 +228,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"
Expand Down

0 comments on commit 110c235

Please sign in to comment.