update spindlestem growth code, remove deprecated functions

This commit is contained in:
FaceDeer
2020-02-01 17:06:16 -07:00
parent 96e6ecefe7
commit 84efae02c4
6 changed files with 33 additions and 21 deletions

View File

@ -59,7 +59,7 @@ df_mapitems.place_against_surface = function(itemstack, placer, pointed_thing)
end
-- add the node and remove 1 item from the itemstack
minetest.add_node(above_pos, {name = itemstack:get_name(), param2 = param2})
if not minetest.setting_getbool("creative_mode") and not minetest.check_player_privs(placer, "creative") then
if not minetest.settings:get_bool("creative_mode", false) and not minetest.check_player_privs(placer, "creative") then
itemstack:take_item()
end
return itemstack