diff --git a/mods/bg_api/leveled_node.lua b/mods/bg_api/leveled_node.lua index b0e378b..f09e218 100644 --- a/mods/bg_api/leveled_node.lua +++ b/mods/bg_api/leveled_node.lua @@ -58,10 +58,9 @@ local function on_place (itemstack, placer, pointed) if not is_same_kind(pointed.under, placed_def.kindname) then return fallback_to_default() end - local above = pointed.under + vector.new(0, 1, 0) - local is_top = above == pointed.above - if not is_top then return fallback_to_default() end + if placer:is_player() and placer:get_player_control().sneak then return fallback_to_default() end + local above = pointed.under + vector.new(0, 1, 0) local above_node = minetest.get_node(above) local target_node = minetest.get_node(pointed.under)