Remove hard-dependency on GregTech (#10)

* Update buildscript

* Make GregTech a soft-dependency

* Small cleanup
This commit is contained in:
glowredman authored and GitHub committed 2023-03-25 14:45:43 +01:00
1 parent f31f2e3adf
commit f6eb09de3a
13 files changed
+451 -87

No files matched your search

@@ -37,7 +37,7 @@ public class BlockFindService {
}
int tileMeta;
if (tileEntity instanceof IGregTechTileEntity) {
if (FindIt.isGregTechLoaded() && tileEntity instanceof IGregTechTileEntity) {
tileMeta = ((IGregTechTileEntity) tileEntity).getMetaTileID();
} else {
tileMeta = tileEntity.getBlockMetadata();