Compare commits

...
Author SHA1 Message Date
Martin Robertz 88875ab99b Update build.gradle 2022-11-12 11:32:41 +01:00
Martin Robertz e311705327 Merge pull request #37 from OneEyeMaker/master
Greggified recipes of fluid storage cells
2022-11-12 11:32:22 +01:00
OneEyeMaker 086e46dc46 Greggified recipes of fluid storage cells 2022-11-12 13:14:20 +03:00
Martin Robertz 6da8cdf831 Merge pull request #35 from guineawheek/fix_npe
fix NPE crash with recent code change
2022-11-02 18:03:07 +01:00
Guinea Wheek 7def78aa90 fix silly NPE crash 2022-10-31 19:34:47 -07:00
3 changed files with 21 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ buildscript {
}
}
dependencies {
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.7'
classpath 'com.github.GTNewHorizons:ForgeGradle:1.2.11'
}
}
@@ -201,7 +201,10 @@ public class FluidConvertingInventoryAdaptor extends InventoryAdaptor {
}
if (p2p == invFluidsP2P || p2p == null)
continue;
tankInfos.add(Ae2Reflect.getP2PLiquidTarget(p2p).getTankInfo(p2p.getSide().getOpposite()));
IFluidHandler target = Ae2Reflect.getP2PLiquidTarget(p2p);
if (target == null)
continue;
tankInfos.add(target.getTankInfo(p2p.getSide().getOpposite()));
}
} catch (GridAccessException e) {
// ignore
@@ -70,7 +70,22 @@ public class RecipeLoader implements Runnable {
};
for (ItemBasicFluidStorageCell cell : cells) {
GameRegistry.addRecipe(new ShapedOreRecipe(cell, "GDG", "DCD", "III", 'D', "dustRedstone", 'G', AE2_QUARTZ_GLASS, 'C', cell.getComponent(), 'I', "ingotIron"));
GameRegistry.addRecipe(new ShapedOreRecipe(cell, "hCW", "SKS", "WAs",
'h', "craftingToolHardHammer",
'C', "plateCertusQuartz",
'W', "screwCertusQuartz",
'S', "plateStainlessSteel",
'K', cell.getComponent(),
'A', "plateAluminium",
's', "craftingToolScrewdriver"));
GameRegistry.addRecipe(new ShapedOreRecipe(cell, "sCW", "SKS", "WAh",
'h', "craftingToolHardHammer",
'C', "plateCertusQuartz",
'W', "screwCertusQuartz",
'S', "plateStainlessSteel",
'K', cell.getComponent(),
'A', "plateAluminium",
's', "craftingToolScrewdriver"));
GameRegistry.addRecipe(new ShapelessOreRecipe(cell, AE2_CELL_HOUSING, cell.getComponent()));
}
}