diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-08-29 13:59:04 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-08-29 13:59:04 +0100 |
commit | ee35a77ed0221de9ad4261d7e8952b1bcb7af83c (patch) | |
tree | e001d4eeafee1db8ca4d627b8926c90290660a48 /beanpole.lua | |
parent | df1aa7fad3e7af030ee6e260b6ec719af727ff0e (diff) |
optimized growing routine, fixed place_param2
Diffstat (limited to 'beanpole.lua')
-rw-r--r-- | beanpole.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/beanpole.lua b/beanpole.lua index fd93383..8afead6 100644 --- a/beanpole.lua +++ b/beanpole.lua @@ -41,7 +41,7 @@ function place_beans(itemstack, placer, pointed_thing, plantname) minetest.sound_play("default_place_node", {pos = pt.under, gain = 1.0}) - if not minetest.setting_getbool("creative_mode") then + if not farming.is_creative(placer:get_player_name()) then itemstack:take_item() |