From bc151062f2c6e4f6797b81f97e62b6329bc63c23 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 6 Sep 2025 21:06:01 +0200 Subject: [PATCH] removed dirt duplication with pitchfork --- nodes_hay.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodes_hay.lua b/nodes_hay.lua index 3d1f8b0..61b6b4b 100644 --- a/nodes_hay.lua +++ b/nodes_hay.lua @@ -32,7 +32,9 @@ if( minetest.registered_items["default:dirt_with_grass"] if not timer:is_started() then timer:start(math.random(60, 300)) end - -- TODO: prevent dirt from beeing multiplied this way (that is: give no dirt!) + -- prevent dirt from beeing multiplied this way (that is: give no dirt!) + local inv = digger:get_inventory() + inv:remove_item('main', 'default:dirt 1') return end, })