Hopper compatibility and iron furnace fix #11

Merged
mrkubax10 merged 4 commits from HandfulOfFrogs/industrialtest:master into master 2024-05-10 21:38:37 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 2d4fa3b68b - Show all commits

View File

@ -378,7 +378,7 @@ function industrialtest.internal.registerMachine(config)
return inv, "src", mcl_util.select_stack(hop_inv, hop_list, inv, "src")
end
definition._mcl_hoppers_on_after_push=function(pos)
minetest.get_node_timer(pos):start(1.0)
minetest.get_node_timer(pos):start(industrialtest.updateDelay)
mrkubax10 marked this conversation as resolved Outdated

Use industrialtest.updateDelay instead of hardcoding 1.0.

Use `industrialtest.updateDelay` instead of hardcoding `1.0`.
end
end
definition.groups._industrialtest_wrenchUnmountable=1

View File

@ -306,7 +306,7 @@ elseif industrialtest.mclAvailable then
definition._mcl_hoppers_on_try_pull = mcl_furnaces.hoppers_on_try_pull
definition._mcl_hoppers_on_try_push = mcl_furnaces.hoppers_on_try_push
definition._mcl_hoppers_on_after_push = function(pos)
mrkubax10 marked this conversation as resolved Outdated

Same as above.

Same as above.
minetest.get_node_timer(pos):start(1.0)
minetest.get_node_timer(pos):start(industrialtest.updateDelay)
end
end
minetest.register_node("industrialtest:iron_furnace",definition)