recipes changed, chest handling changed
This commit is contained in:
parent
cb9b7d6cb0
commit
d484a9014e
@ -67,8 +67,9 @@ function signs_bot.robot_put(base_pos, robot_pos, param2, num, slot)
|
||||
|
||||
if def and (not def.allow_put or def.allow_put(target_pos, taken, owner)) then
|
||||
local dst_inv = minetest.get_inventory({type="node", pos=target_pos})
|
||||
if not lib.put_inv_items(dst_inv, def.put_listname, 1, taken) then
|
||||
lib.drop_items(robot_pos, taken)
|
||||
local leftover = dst_inv and dst_inv:add_item(def.put_listname, taken)
|
||||
if leftover and leftover:get_count() > 0 then
|
||||
lib.drop_items(robot_pos, leftover)
|
||||
end
|
||||
elseif NODE_IO then
|
||||
local side = node_io.get_target_side(robot_pos, target_pos)
|
||||
|
@ -88,7 +88,7 @@ if farming.mod == "redo" then
|
||||
fc("farming:chili_8", "farming:chili_pepper", "farming:chili_pepper")
|
||||
fs("farming:seed_hemp", "farming:hemp_1")
|
||||
fc("farming:hemp_8", "farming:hemp_leaf", "farming:seed_hemp")
|
||||
fs("farming:oat", "farming:oat_1")
|
||||
fs("farming:seed_oat", "farming:oat_1")
|
||||
fc("farming:oat_8", "farming:oat", "farming:seed_oat")
|
||||
fs("farming:seed_rye", "farming:rye_1")
|
||||
fc("farming:rye_8", "farming:rye", "farming:seed_rye")
|
||||
@ -98,7 +98,7 @@ if farming.mod == "redo" then
|
||||
fc('farming:beetroot_5', 'farming:beetroot', 'farming:beetroot')
|
||||
fs("farming:cocoa_beans", 'farming:cocoa_1')
|
||||
fc('farming:cocoa_4', 'farming:cocoa_beans', 'farming:cocoa_beans')
|
||||
fs('farming:garlic', 'farming:garlic_1')
|
||||
fs('farming:garlic_clove', 'farming:garlic_1')
|
||||
fc('farming:garlic_5', 'farming:garlic', 'farming:garlic_clove')
|
||||
fs('farming:onion', 'farming:onion_1')
|
||||
fc('farming:onion_5', 'farming:onion', 'farming:onion')
|
||||
|
Loading…
x
Reference in New Issue
Block a user