Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ public Map<RecipeCapability<?>, List<Object>> handleRecipe(IO io, GTRecipe recip
var entry = it.next();
var handlerList = getCapability(entry.getKey());
for (var handler : handlerList) {
if (io == IO.IN && handler.getTotalContentAmount() == 0) {
continue;
}
var left = handler.handleRecipe(io, recipe, entry.getValue(), simulate);
if (left == null) {
it.remove();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ public static ActionResult handleRecipe(IRecipeCapabilityHolder holder, GTRecipe
Map<RecipeCapability<?>, List<Content>> contents,
Map<RecipeCapability<?>, Object2IntMap<?>> chanceCaches,
boolean isTick, boolean simulated) {
if (contents.isEmpty()) {
return ActionResult.PASS_NO_CONTENTS;
} ;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

potential typo with the random ; here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ill fix at monday

RecipeRunner runner = new RecipeRunner(recipe, io, isTick, holder, chanceCaches, simulated);
var result = runner.handle(contents);

Expand Down
Loading