mirror of
https://github.com/GTNewHorizons/FindIt.git
synced 2026-11-24 18:24:21 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
296f29ae76 | ||
|
|
84dd2e45f9 |
No files matched your search
@@ -3,9 +3,9 @@ name: Build and test
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
push:
|
push:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import com.gtnh.findit.FindItNetwork;
|
|||||||
import com.gtnh.findit.util.WorldUtils;
|
import com.gtnh.findit.util.WorldUtils;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
|
||||||
|
|
||||||
public class BlockFindService {
|
public class BlockFindService {
|
||||||
|
|
||||||
@@ -37,12 +36,11 @@ public class BlockFindService {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int tileMeta;
|
int tileMeta = tileBlock.getDamageValue(
|
||||||
if (FindIt.isGregTechLoaded() && tileEntity instanceof IGregTechTileEntity gregTech) {
|
tileEntity.getWorldObj(),
|
||||||
tileMeta = gregTech.getMetaTileID();
|
tileEntity.xCoord,
|
||||||
} else {
|
tileEntity.yCoord,
|
||||||
tileMeta = tileEntity.getBlockMetadata();
|
tileEntity.zCoord);
|
||||||
}
|
|
||||||
|
|
||||||
if (request.getMetaToFind() == tileMeta) {
|
if (request.getMetaToFind() == tileMeta) {
|
||||||
positions.add(new ChunkPosition(tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord));
|
positions.add(new ChunkPosition(tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord));
|
||||||
|
|||||||
Reference in new issue
Block a user