Use minetest.is_creative_enabled

This commit is contained in:
Wuzzy 2023-06-30 14:07:23 +02:00
parent aa1bf87abe
commit b4b04c4330

View File

@ -497,7 +497,7 @@ xdecor.register("lantern", {
return
end
if leftover:get_count() == 0 and
not minetest.setting_getbool("creative_mode") then
not minetest.is_creative_enabled(placer:get_player_name()) then
itemstack:take_item()
end
@ -632,7 +632,7 @@ xdecor.register("painting_1", {
end
if leftover:get_count() == 0 and
not minetest.setting_getbool("creative_mode") then
not minetest.is_creative_enabled(placer:get_player_name()) then
itemstack:take_item()
end