Add xdecor:is_repairable method for mods (#147)

to check whether items are repairable with the workbench
master
Jordan Irwin 2021-07-13 11:49:59 -07:00 committed by GitHub
parent 3103d426d2
commit 0dbf92e789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,11 @@ function workbench:repairable(stack)
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)
local output = {}
for i = 1, #self.defs do