forked from EnigmaticaModpacks/Enigmatica2Expert
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: ⚡remove crafting recipes in [Engineer's Manual]
This should save 2-6 seconds of game load. Usually, it wont take so long for IE to make thosre 3x3 grid recipe pages. But in E2EE there is a lot of recipes. IE script made the way it need to iterate all 16000 crafting table recipes for each manual book recipe. Those recipes makes sense if modpack doesnt have HEI. But since most of the recipes are changed and was already not actual, I removed them. Text on pagest still there, just without 3x3 grid.
- Loading branch information
Showing
8 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+6.15 KB
bansoukou/ImmersiveEngineering-0.12-98/blusunrize/lib/manual/ManualInstance.class
Binary file not shown.
Binary file added
BIN
+9.56 KB
bansoukou/ImmersiveEngineering-0.12-98/blusunrize/lib/manual/ManualPages$Crafting.class
Binary file not shown.
Binary file added
BIN
+9.41 KB
bansoukou/ImmersiveEngineering-0.12-98/blusunrize/lib/manual/ManualPages$CraftingMulti.class
Binary file not shown.
Binary file added
BIN
+7.06 KB
bansoukou/ImmersiveEngineering-0.12-98/blusunrize/lib/manual/ManualPages.class
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
...soukou_diffs/ImmersiveEngineering-0.12-98/blusunrize/lib/manual/ManualInstance.class.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@@ -122,7 +122,6 @@ public abstract class ManualInstance { | ||
for (ManualEntry entry : this.manualContents.values()) { | ||
int iP = 0; | ||
for (IManualPage p : entry.getPages()) { | ||
- p.recalculateCraftingRecipes(); | ||
for (ItemStack s : p.getProvidedRecipes()) { | ||
this.itemLinks.put(this.getItemHash(s), new ManualLink(entry.getName(), iP)); | ||
} |
8 changes: 8 additions & 0 deletions
8
..._diffs/ImmersiveEngineering-0.12-98/blusunrize/lib/manual/ManualPages$Crafting.class.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@@ -57,7 +57,6 @@ extends ManualPages { | ||
this.stacks = stacks; | ||
this.recipePage = new int[stacks.length]; | ||
this.yOff = new int[stacks.length]; | ||
- this.recalculateCraftingRecipes(); | ||
} | ||
|
||
@Override |
8 changes: 8 additions & 0 deletions
8
...s/ImmersiveEngineering-0.12-98/blusunrize/lib/manual/ManualPages$CraftingMulti.class.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@@ -58,7 +58,6 @@ extends ManualPages { | ||
public ManualPages.CraftingMulti(ManualInstance manual, String text, Object ... stacks) { | ||
super(manual, text); | ||
this.stacks = stacks; | ||
- this.recalculateCraftingRecipes(); | ||
} | ||
|
||
@Override |
16 changes: 16 additions & 0 deletions
16
...bansoukou_diffs/ImmersiveEngineering-0.12-98/blusunrize/lib/manual/ManualPages.class.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@@ -170,7 +170,6 @@ implements IManualPage { | ||
public CraftingMulti(ManualInstance manual, String text, Object ... stacks) { | ||
super(manual, text); | ||
this.stacks = stacks; | ||
- this.recalculateCraftingRecipes(); | ||
} | ||
|
||
@Override | ||
@@ -360,7 +359,6 @@ implements IManualPage { | ||
this.stacks = stacks; | ||
this.recipePage = new int[stacks.length]; | ||
this.yOff = new int[stacks.length]; | ||
- this.recalculateCraftingRecipes(); | ||
} | ||
|
||
@Override |