Autocrafting: Add warning when items could not be crafted
This commit is contained in:
parent
6110f1bd5e
commit
cc741a727a
@ -93,7 +93,10 @@ cg.auto_craft = function(player, craft, num)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Check again, and return if not all items were moved.
|
-- Check again, and return if not all items were moved.
|
||||||
if not inv:is_empty("craft") then return end
|
if not inv:is_empty("craft") then
|
||||||
|
minetest.chat_send_player(player:get_player_name(), cg.S("Item could not be crafted!"))
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if craft.width > inv:get_width("craft") or table.maxn(craft.items) > inv:get_size("craft") then return end
|
if craft.width > inv:get_width("craft") or table.maxn(craft.items) > inv:get_size("craft") then return end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user