forked from rudzik8/mcl_decor
Infinite curtains fix: part 1 (failed)
just copied this string from mcl_signs... it looks like it SHOULD fix that, but it DOESN'T. (i hate curtains now)
This commit is contained in:
parent
44b87c3321
commit
8dc358688c
4
api.lua
4
api.lua
|
@ -367,6 +367,10 @@ function mcl_decor.register_curtains(color, desc, wool, wooltile, dye, colorgrou
|
||||||
if not success then
|
if not success then
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
-- V this one SHOULD fix infinite curtains problem, but it doesn't V
|
||||||
|
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||||
|
itemstack:take_item()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_rightclick = function(pos, node, _, itemstack)
|
on_rightclick = function(pos, node, _, itemstack)
|
||||||
|
|
Loading…
Reference in New Issue