mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2025-07-17 07:10:29 +02:00
Use proper creative mode check (#59)
This commit is contained in:
@ -64,7 +64,7 @@ minetest.register_node("dryplants:juncus", {
|
||||
else
|
||||
minetest.swap_node(right_here, {name="dryplants:juncus"})
|
||||
end
|
||||
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