Add alternative recipe aspect cost check

(https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/7492)
This commit is contained in:
repo_alt committed 2021-02-17 18:53:54 +03:00
1 parent 05b181d662
commit 2ebece716d
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = "1.1.3.10-GTNH"
version = "1.1.3.11-GTNH"
group= "thaumicenergistics" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "thaumicenergistics"
@@ -103,7 +103,11 @@ public class ArcaneRecipeHelper
return null;
}
return recipe.getAspects( this.createBridgeInventory( sourceInventory, firstSlotIndex, gridSize ) );
AspectList al = recipe.getAspects( this.createBridgeInventory( sourceInventory, firstSlotIndex, gridSize ) );
// some mods (e.g. Gadomancy) return null on inventory check
if (al == null)
al = recipe.getAspects();
return al;
}
/**