mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2025-07-03 08:30:31 +02:00
Use proper creative mode check (#59)
This commit is contained in:
@ -54,7 +54,7 @@ for i in pairs(NoDe) do
|
||||
local direction = minetest.dir_to_facedir(placer:get_look_dir())
|
||||
if minetest.get_node(pt.above).name=="air" then
|
||||
minetest.swap_node(pt.above, {name="trunks:twig_"..math.random(1,4), param2=direction})
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
if not minetest.is_creative_enabled(playername) then
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
|
Reference in New Issue
Block a user