aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util/GTRecipeBuilder.java
diff options
context:
space:
mode:
authorchochem <40274384+chochem@users.noreply.github.com>2024-09-23 21:07:16 +0100
committerGitHub <noreply@github.com>2024-09-23 20:07:16 +0000
commit2368c35601a37fe60fe45b1f454dd48a8c3f43c6 (patch)
tree4c8cac7f1dac8bf3a65ac6acac519d67a5ffe672 /src/main/java/gregtech/api/util/GTRecipeBuilder.java
parent1abc736829841c8700b24b33d1936771a1956191 (diff)
downloadGT5-Unofficial-2368c35601a37fe60fe45b1f454dd48a8c3f43c6.tar.gz
GT5-Unofficial-2368c35601a37fe60fe45b1f454dd48a8c3f43c6.tar.bz2
GT5-Unofficial-2368c35601a37fe60fe45b1f454dd48a8c3f43c6.zip
More log entries for ra2 failing (#3267)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/api/util/GTRecipeBuilder.java')
-rw-r--r--src/main/java/gregtech/api/util/GTRecipeBuilder.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/util/GTRecipeBuilder.java b/src/main/java/gregtech/api/util/GTRecipeBuilder.java
index 1426c1c264..69890e564d 100644
--- a/src/main/java/gregtech/api/util/GTRecipeBuilder.java
+++ b/src/main/java/gregtech/api/util/GTRecipeBuilder.java
@@ -211,6 +211,30 @@ public class GTRecipeBuilder {
}
}
+ public static void handleInvalidRecipeLowFluids() {
+ if (!DEBUG_MODE_INVALID && !PANIC_MODE_INVALID) {
+ return;
+ }
+ // place a breakpoint here to catch all these issues
+ GTLog.err.println("invalid recipe: not enough input fluids");
+ new IllegalArgumentException().printStackTrace(GTLog.err);
+ if (PANIC_MODE_INVALID) {
+ throw new IllegalArgumentException("invalid recipe");
+ }
+ }
+
+ public static void handleInvalidRecipeLowItems() {
+ if (!DEBUG_MODE_INVALID && !PANIC_MODE_INVALID) {
+ return;
+ }
+ // place a breakpoint here to catch all these issues
+ GTLog.err.println("invalid recipe: not enough input items");
+ new IllegalArgumentException().printStackTrace(GTLog.err);
+ if (PANIC_MODE_INVALID) {
+ throw new IllegalArgumentException("invalid recipe");
+ }
+ }
+
public static void handleRecipeCollision(String details) {
if (!DEBUG_MODE_COLLISION && !PANIC_MODE_COLLISION) {
return;