mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2024-12-26 18:50:22 +01:00
Add potential fix for circular saw crash.
This commit is contained in:
parent
c733848327
commit
e308ecf472
@ -123,8 +123,8 @@ function circular_saw:update_inventory(pos, amount)
|
|||||||
end
|
end
|
||||||
local node_name = stack:get_name()
|
local node_name = stack:get_name()
|
||||||
local name_parts = circular_saw.known_nodes[node_name] or ""
|
local name_parts = circular_saw.known_nodes[node_name] or ""
|
||||||
local modname = name_parts[1]
|
local modname = name_parts[1] or ""
|
||||||
local material = name_parts[2]
|
local material = name_parts[2] or ""
|
||||||
|
|
||||||
inv:set_list("input", { -- Display as many full blocks as possible:
|
inv:set_list("input", { -- Display as many full blocks as possible:
|
||||||
node_name.. " " .. math.floor(amount / 8)
|
node_name.. " " .. math.floor(amount / 8)
|
||||||
|
Loading…
Reference in New Issue
Block a user