Don't take item in Creative if place slab on slab
This commit is contained in:
parent
6a1917124a
commit
cb72077c13
@ -50,7 +50,9 @@ function partialblocks.register_material(name, desc_slab, desc_stair, node, grou
|
||||
and itemstack:get_count() >= 1 then
|
||||
minetest.set_node(pos, {name = node})
|
||||
|
||||
itemstack:take_item()
|
||||
if not minetest.settings:get_bool("creative_mode") then
|
||||
itemstack:take_item()
|
||||
end
|
||||
|
||||
return itemstack
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user