Use minetest.is_creative_enabled
This commit is contained in:
parent
aa1bf87abe
commit
b4b04c4330
@ -497,7 +497,7 @@ xdecor.register("lantern", {
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if leftover:get_count() == 0 and
|
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()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -632,7 +632,7 @@ xdecor.register("painting_1", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
if leftover:get_count() == 0 and
|
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()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user