Hybrid Dog Sent: 05 Jun 2016, 09:51 wrote:Obviously the
node timer isn't started.
Recently sofar changed the farming mod (of minetest_game) that it uses node timers instead of
abms to increase performance.
The node timer should be started
there in the farming.place_seed function.
l noticed that
the farming_plus mod overrides farming.place_seed (thus the node timer isn't started by this function), so l fixed it
there in my fork.
Before using that superpick tool you should remove and place the seed because the node timer ought to get started when placing the seed.
Maybe you don't use the newest farming mod
or you use a farming_plus mod overriding the seed placement function
or some other mod overrides the function, this can be tested:
Add this code into
minetest_game/mods/farming/init.lua directly subsequent to
farming = {}Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local _farming = {}
setmetatable(farming, {
__index = function(_, name)
return _farming[name]
end,
__newindex = function(_, name, value)
if _farming[name] then
print("### Mod "..minetest.get_current_modname().." overrides farming."..name)
end
_farming[name] = value
end
})
Here's the code diff:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
diff --git a/mods/farming/init.lua b/mods/farming/init.lua
index 45370e7..f5dd389 100644
--- a/mods/farming/init.lua
+++ b/mods/farming/init.lua
@@ -1,5 +1,19 @@
-- Global farming namespace
farming = {}
+
+local _farming = {}
+setmetatable(farming, {
+ __index = function(_, name)
+ return _farming[name]
+ end,
+ __newindex = function(_, name, value)
+ if _farming[name] then
+ print("### Mod "..minetest.get_current_modname().." overrides farming."..name)
+ end
+ _farming[name] = value
+ end
+})
+
farming.path = minetest.get_modpath("farming")
-- Load files
Then start minetest in a terminal, it should tell which mod overrides which farming stuff, e.g.
### Mod somemodname overrides farming.place_seed