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

@@ -33,6 +33,7 @@ public class WorldUtils {
for (int cz = z1 >> 4; cz <= cz1; cz++) {
Chunk chunk = world.getChunkFromChunkCoords(cx, cz);
if (chunk != null) {
@SuppressWarnings("unchecked")
Map<ChunkPosition, TileEntity> tiles = chunk.chunkTileEntityMap;
for (TileEntity tile : tiles.values()) {
if (!tile.isInvalid() && tile.xCoord >= x1