Don't take item in Creative if place slab on slab

This commit is contained in:
Wuzzy 2019-09-02 14:19:50 +02:00
parent 6a1917124a
commit cb72077c13
1 changed files with 3 additions and 1 deletions

View File

@ -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