enchanting.lua: Allow to pay with industrial mese (#132)

master
rusty-snake 2020-09-17 17:27:45 +00:00 committed by GitHub
parent 64dcec0c74
commit 259420dcf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,8 @@ end
function enchanting.put(_, listname, _, stack)
local stackname = stack:get_name()
if listname == "mese" and stackname == "default:mese_crystal" then
if listname == "mese" and (stackname == "default:mese_crystal" or
stackname == "imese:industrial_mese_crystal") then
return stack:get_count()
elseif listname == "tool" and allowed(stackname:match("[^:]+$")) then
return 1