Add xdecor:is_repairable method for mods (#147)
to check whether items are repairable with the workbench
This commit is contained in:
parent
3103d426d2
commit
0dbf92e789
@ -52,6 +52,11 @@ function workbench:repairable(stack)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- method to allow other mods to check if an item is repairable
|
||||||
|
function xdecor:is_repairable(stack)
|
||||||
|
return workbench:repairable(stack)
|
||||||
|
end
|
||||||
|
|
||||||
function workbench:get_output(inv, input, name)
|
function workbench:get_output(inv, input, name)
|
||||||
local output = {}
|
local output = {}
|
||||||
for i = 1, #self.defs do
|
for i = 1, #self.defs do
|
||||||
|
Loading…
Reference in New Issue
Block a user