forked from MineClone5/MineClone5
Fix double slab not working if no craft for slab
This commit is contained in:
parent
f32eeed2cf
commit
282b7e0025
|
@ -193,9 +193,6 @@ function mcl_stairs.register_slab(subname, recipeitem, groups, images, descripti
|
||||||
not ((dir.y >= 0 and minetest.get_item_group(under.name, "slab_top") == 1) or
|
not ((dir.y >= 0 and minetest.get_item_group(under.name, "slab_top") == 1) or
|
||||||
(dir.y <= 0 and minetest.get_item_group(under.name, "slab_top") == 0)) then
|
(dir.y <= 0 and minetest.get_item_group(under.name, "slab_top") == 0)) then
|
||||||
|
|
||||||
if not recipeitem then
|
|
||||||
return itemstack
|
|
||||||
end
|
|
||||||
local player_name = placer:get_player_name()
|
local player_name = placer:get_player_name()
|
||||||
if minetest.is_protected(pointed_thing.under, player_name) and not
|
if minetest.is_protected(pointed_thing.under, player_name) and not
|
||||||
minetest.check_player_privs(placer, "protection_bypass") then
|
minetest.check_player_privs(placer, "protection_bypass") then
|
||||||
|
|
Loading…
Reference in New Issue