Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
reobf committed Feb 10, 2025
1 parent 70d2d4f commit 77e671c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.121:dev'){ transitive = false }
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.123-pre:dev'){ transitive = false }

api("com.github.GTNewHorizons:StructureLib:1.4.0:dev")
api("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2790,6 +2790,7 @@ public void resetMulti() {
}

public void recordRecipe(DualInvBuffer thiz) {
if (thiz==null) return;
if (thiz.PID > 0) return;
if (useNewGTPatternCache == false) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ public boolean pushPattern(ICraftingPatternDetails patternDetails, InventoryCraf
*/

DualInvBuffer theBuffer = /* ((BufferedDualInputHatch) master). */classifyForce();
if(theBuffer!=null)
recordRecipe(theBuffer);

justHadNewItems = true;
Expand Down Expand Up @@ -1053,6 +1054,7 @@ public int pushPatternMulti(ICraftingPatternDetails patternDetails, InventoryCra
*/

DualInvBuffer theBuffer = /* ((BufferedDualInputHatch) master). */classifyForce();
if(theBuffer!=null)
recordRecipe(theBuffer);

// if(theBuffer!=null){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,7 @@ public boolean pushPattern(ICraftingPatternDetails patternDetails, InventoryCraf
BufferedDualInputHatch m = (BufferedDualInputHatch) master;

DualInvBuffer theBuffer = ((BufferedDualInputHatch) master).classifyForce();
if(theBuffer!=null)
((BufferedDualInputHatch) master).recordRecipe(theBuffer);
// ((BufferedDualInputHatch) master).classifyForce();
}
Expand Down Expand Up @@ -1124,6 +1125,7 @@ public int pushPatternMulti(ICraftingPatternDetails patternDetails, InventoryCra
*/

DualInvBuffer theBuffer = ((BufferedDualInputHatch) master).classifyForce();
if(theBuffer!=null)
m.recordRecipe(theBuffer);
// DualInvBuffer theBuffer=((BufferedDualInputHatch) master).classifyForce();

Expand Down
15 changes: 10 additions & 5 deletions src/main/java/reobf/proghatches/main/MyMod.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package reobf.proghatches.main;

import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.util.ArrayDeque;
import java.util.ArrayList;
Expand Down Expand Up @@ -34,6 +39,7 @@
import net.minecraftforge.event.world.BlockEvent;
import net.minecraftforge.event.world.ChunkEvent;
import net.minecraftforge.event.world.WorldEvent;
import net.minecraftforge.oredict.OreDictionary;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down Expand Up @@ -95,6 +101,7 @@
import reobf.proghatches.item.ItemBookTutorial;
import reobf.proghatches.keybinding.KeyBindings;
import reobf.proghatches.lang.LangManager;
import reobf.proghatches.main.asm.repack.objectwebasm.ClassWriter;
import reobf.proghatches.main.registration.Registration;
import reobf.proghatches.net.ConnectionModeMessage;
import reobf.proghatches.net.MAFXMessage;
Expand Down Expand Up @@ -379,15 +386,13 @@ public void join(PlayerLoggedInEvent e) {

public static Achievement achievement;

/**
* @param event
*/

@Mod.EventHandler

public void postInit(FMLPostInitializationEvent event) {
proxy.postInit(event);
// KeyBindings


OreDictionary.registerOre("ph:circuit", new ItemStack( progcircuit,1,OreDictionary.WILDCARD_VALUE));
{
AchievementPage page = new AchievementPage(
MODID,
Expand Down

0 comments on commit 77e671c

Please sign in to comment.