diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-07-24 14:00:54 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-07-24 14:01:21 +0800 |
| commit | 929ca0ed6de9dd25208304cd0f51a8f2d0f22ceb (patch) | |
| tree | 52f7bb2ebaa47599bb097d5593af7eb9cc161a4b /src/main/java/me/shedaniel/rei/impl/InternalWidgets.java | |
| parent | d4d23b0b0170f605463c49f5790e7326c7e38cf2 (diff) | |
| download | RoughlyEnoughItems-929ca0ed6de9dd25208304cd0f51a8f2d0f22ceb.tar.gz RoughlyEnoughItems-929ca0ed6de9dd25208304cd0f51a8f2d0f22ceb.tar.bz2 RoughlyEnoughItems-929ca0ed6de9dd25208304cd0f51a8f2d0f22ceb.zip | |
Add blocksFurtherHandling to AutoTransferHandler.Result
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/InternalWidgets.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/impl/InternalWidgets.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/InternalWidgets.java b/src/main/java/me/shedaniel/rei/impl/InternalWidgets.java index a74b8121e..a88f20c2d 100644 --- a/src/main/java/me/shedaniel/rei/impl/InternalWidgets.java +++ b/src/main/java/me/shedaniel/rei/impl/InternalWidgets.java @@ -68,9 +68,9 @@ public final class InternalWidgets { for (AutoTransferHandler autoTransferHandler : RecipeHelper.getInstance().getSortedAutoCraftingHandler()) try { AutoTransferHandler.Result result = autoTransferHandler.handle(context); - if (result.isSuccessful()) { + if (result.isBlocking()) { if (result.isReturningToScreen()) { - break; // Same as failing, but doesn't ask other handlers + break; } return; } @@ -97,7 +97,6 @@ public final class InternalWidgets { error = null; color = 0; redSlots = null; - break; } else if (result.isApplicable()) { if (error == null) { error = Lists.newArrayList(); @@ -107,6 +106,8 @@ public final class InternalWidgets { if (result.getIntegers() != null && !result.getIntegers().isEmpty()) redSlots = result.getIntegers(); } + + if (result.isBlocking()) break; } catch (Exception e) { e.printStackTrace(); } |
