Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
reobf committed Dec 12, 2024
1 parent 65b4fb4 commit 42cf856
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private void post(){

try {

this.getProxy().getGrid().postEvent(new MENetworkCellArrayUpdate());
//this.getProxy().getGrid().postEvent(new MENetworkCellArrayUpdate());
//this.getProxy().getGrid().postEvent(new MENetworkStorageEvent(handler0, StorageChannel.ITEMS));
try {

Expand All @@ -208,7 +208,7 @@ private void post(){


} catch (final GridAccessException ignore) {}
} catch (GridAccessException e) {
} catch (Exception e) {
// TODO Auto-generated catch block
//e.printStackTrace();
}
Expand Down Expand Up @@ -538,7 +538,12 @@ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
if(update){update=false;updateStatus();}
if(wasActive!=active){
wasActive=active;
post();

try {
this.getProxy().getGrid().postEvent(new MENetworkCellArrayUpdate());
} catch (GridAccessException e) {

}post();
}
if (voidFull ) {
voidOverflow = false;
Expand Down
17 changes: 14 additions & 3 deletions src/main/java/reobf/proghatches/gt/metatileentity/SuperTankME.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,18 @@ public SuperTankME(int aID, String aName, String aNameRegional, int aTier, int a
public void channel(final MENetworkChannelsChanged c) {
post();
}*/ private AEFluidStack last;
}*/





private AEFluidStack last;
private void post(){

try {

this.getProxy().getGrid().postEvent(new MENetworkCellArrayUpdate());
//this.getProxy().getGrid().postEvent(new MENetworkCellArrayUpdate());
//this.getProxy().getGrid().postEvent(new MENetworkStorageEvent(handler, StorageChannel.FLUIDS));
try {

Expand All @@ -184,7 +190,7 @@ private void post(){



} catch (GridAccessException e) {
} catch (Exception e) {
// TODO Auto-generated catch block
//e.printStackTrace();
}
Expand Down Expand Up @@ -575,6 +581,11 @@ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
if(update){update=false;updateStatus();}
if(wasActive!=this.getProxy().isActive()){
wasActive=this.getProxy().isActive();
try {
this.getProxy().getGrid().postEvent(new MENetworkCellArrayUpdate());
} catch (GridAccessException e) {

}
post();
}

Expand Down
34 changes: 33 additions & 1 deletion src/main/java/reobf/proghatches/main/registration/PHRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,39 @@ public void run() {
.eut(480)
.addTo(RecipeMaps.assemblerRecipes);


int i=0;
ItemStack[] b=new ItemStack[]{
Api.INSTANCE.blocks().blockCraftingAccelerator.stack(1),
Api.INSTANCE.blocks().blockCraftingAccelerator4x.stack(1),
Api.INSTANCE.blocks().blockCraftingAccelerator16x.stack(1),
Api.INSTANCE.blocks().blockCraftingAccelerator64x.stack(1),
Api.INSTANCE.blocks().blockCraftingAccelerator256x.stack(1),
Api.INSTANCE.blocks().blockCraftingAccelerator4096x.stack(1),

};
int eu=8000;
for(ItemStack bb:b){
ItemStack bbb=new ItemStack(MyMod.condensers[i]);


GT_Values.RA.stdBuilder()
.itemInputs(
bb,new ItemStack(MyMod.smartarm, 4,i+5)

)
.itemOutputs(bbb
)
.duration(35 * SECONDS)
.eut(eu)
.addTo(RecipeMaps.assemblerRecipes);


eu=eu*4;
i++;
}




}

Expand Down

0 comments on commit 42cf856

Please sign in to comment.