summaryrefslogtreecommitdiff
path: root/polebean.lua
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2015-05-06 23:59:25 -0700
committerAuke Kok <auke-jan.h.kok@intel.com>2015-05-06 23:59:25 -0700
commita1be5250b80f1dd7b0b3b9c59611cdb0c0bf57a7 (patch)
treeeb0fc2f554bfdf15bf7d113b1757b449ec8ad2df /polebean.lua
parent59d53aa5a63a5b36867c2ea592ca4005f9859fe2 (diff)
Unify the difficulty settings into init.lua
All the scaling factors are now either in the plant table or the crops.settings table. This makes end-user tuning a bit harder, but switching easier and configuring easier as well.
Diffstat (limited to 'polebean.lua')
-rw-r--r--polebean.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/polebean.lua b/polebean.lua
index 5af61ac..11350cf 100644
--- a/polebean.lua
+++ b/polebean.lua
@@ -245,8 +245,8 @@ end
minetest.register_abm({
nodenames = { "crops:beanpole_plant_base_1", "crops:beanpole_plant_base_2", "crops:beanpole_plant_base_3", "crops:beanpole_plant_base_4" },
- interval = crops.interval,
- chance = crops.chance,
+ interval = crops.settings.interval,
+ chance = crops.settings.chance,
neighbors = { "group:soil" },
action = function(pos, node, active_object_count, active_object_count_wider)
if not crops.can_grow(pos) then