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:
Mikita Wiśniewski 2022-04-23 16:38:06 +07:00
parent 44b87c3321
commit 8dc358688c
1 changed files with 4 additions and 0 deletions

View File

@ -367,6 +367,10 @@ function mcl_decor.register_curtains(color, desc, wool, wooltile, dye, colorgrou
if not success then
return itemstack
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,
on_rightclick = function(pos, node, _, itemstack)