Get MakerItemCreateEntry from new info provider

This commit is contained in:
P0nk
2023-03-08 21:09:47 +01:00
parent 1fd0963401
commit 0be48568d7
5 changed files with 69 additions and 65 deletions

View File

@@ -154,7 +154,11 @@ public class MakerProcessor {
}
}
recipe = MakerItemFactory.getItemCreateEntry(toCreate, stimulantid, reagentids);
Optional<MakerItemCreateEntry> createEntry = infoProvider.getMakerItemEntry(toCreate);
if (createEntry.isEmpty()) {
return;
}
recipe = MakerItemFactory.finalizeItemCreateEntry(createEntry.get(), toCreate, stimulantid, reagentids);
}
short createStatus = getCreateStatus(c, recipe);