[Mod] Farming Redo [1.40] [farming]

User avatar
TenPlus1
Member
 
Posts: 2474
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Farming Redo [1.40] [farming]

by TenPlus1 » Fri Feb 01, 2019 19:39

Right-click one at a time, but it's fast and will replant and usually save you 1x crop by doing so.
 

BuckarooBanzay
Member
 
Posts: 172
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

Re: [Mod] Farming Redo [1.40] [farming]

by BuckarooBanzay » Tue Feb 12, 2019 18:37

I think there is a mistake in the current scythe code:

This should invoke with a node not a name:
Code: Select all
diff --git a/hoes.lua b/hoes.lua
index 6417582..6ffa98f 100644
--- a/hoes.lua
+++ b/hoes.lua
@@ -433,7 +433,7 @@ minetest.register_tool("farming:scythe_mithril", {
 
                -- Run script hook
                for _, callback in pairs(core.registered_on_dignodes) do
-                       callback(pos, node.name)
+                       callback(pos, node)
                end
 
                -- play sound


See: https://github.com/minetest/minetest/bl ... .txt#L3596
Code: Select all
minetest.register_on_dignode(function(pos, oldnode, digger))


I had a few errors in the woodcutting mod... which expects a node={ name="" }

Besides that: cool update :D
 

User avatar
TenPlus1
Member
 
Posts: 2474
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: [Mod] Farming Redo [1.40] [farming]

by TenPlus1 » Tue Feb 12, 2019 19:56

Thanks for noticing the bug dude :) git updated...
 

Previous

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 3 guests