diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-10-09 11:17:34 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-10-09 11:17:34 +0100 |
commit | fa180c3c45ebe068a5f620dcae63e275b8ed3854 (patch) | |
tree | b134ebf6a53baba4922bce9087fc325b486e98e3 /bonemeal.lua | |
parent | 87378233a1e51981b9c4b4202bb1f314feabd172 (diff) |
Updating to 0.4.16+ functions
Diffstat (limited to 'bonemeal.lua')
-rw-r--r-- | bonemeal.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bonemeal.lua b/bonemeal.lua index 1de4cbc..60f7ef3 100644 --- a/bonemeal.lua +++ b/bonemeal.lua @@ -295,18 +295,13 @@ minetest.register_craftitem("ethereal:bonemeal", { return
end
- if not minetest.setting_getbool("creative_mode") then
+ if not ethereal.check_creative(user:get_player_name()) then
- local item = user:get_wielded_item()
-
- item:take_item()
- user:set_wielded_item(item)
+ itemstack:take_item()
end
growth(pointed_thing)
- itemstack:take_item()
-
return itemstack
end
end,
|