aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/loaders/preload/GTPreLoad.java
diff options
context:
space:
mode:
authorAlexdoru <57050655+Alexdoru@users.noreply.github.com>2024-09-28 13:25:01 +0200
committerGitHub <noreply@github.com>2024-09-28 11:25:01 +0000
commit86f1765b171f4cc6f163b8027d1330f4e5094e2d (patch)
treeb6e293bd3c976558fc4e4b7190e4d342c2ddc555 /src/main/java/gregtech/loaders/preload/GTPreLoad.java
parent6b1f145f5028f1bc92cf478e5963224e7d94b5cd (diff)
downloadGT5-Unofficial-86f1765b171f4cc6f163b8027d1330f4e5094e2d.tar.gz
GT5-Unofficial-86f1765b171f4cc6f163b8027d1330f4e5094e2d.tar.bz2
GT5-Unofficial-86f1765b171f4cc6f163b8027d1330f4e5094e2d.zip
Remove more reflection + reorganize mixin accessors packages (#3260)
Co-authored-by: Martin Robertz <dream-master@gmx.net> Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/gregtech/loaders/preload/GTPreLoad.java')
-rw-r--r--src/main/java/gregtech/loaders/preload/GTPreLoad.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/main/java/gregtech/loaders/preload/GTPreLoad.java b/src/main/java/gregtech/loaders/preload/GTPreLoad.java
index 6216f752dc..b3c4c48095 100644
--- a/src/main/java/gregtech/loaders/preload/GTPreLoad.java
+++ b/src/main/java/gregtech/loaders/preload/GTPreLoad.java
@@ -339,12 +339,9 @@ public class GTPreLoad {
try {
Objects.requireNonNull(GTUtility.getField("ic2.core.item.ItemScrapbox$Drop", "topChance", true, true))
.set(null, 0);
- ((List<?>) Objects.requireNonNull(
- GTUtility.getFieldContent(
- GTUtility.getFieldContent("ic2.api.recipe.Recipes", "scrapboxDrops", true, true),
- "drops",
- true,
- true))).clear();
+ ((List<?>) Objects
+ .requireNonNull(GTUtility.getFieldContent(ic2.api.recipe.Recipes.scrapboxDrops, "drops", true, true)))
+ .clear();
} catch (Throwable e) {
if (GTValues.D1) {
e.printStackTrace(GTLog.err);
@@ -539,7 +536,7 @@ public class GTPreLoad {
/**
* Clamp value between 0 and 255
- *
+ *
* @param value the value to clamp
* @return the clamped value
*/