Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
aagrishankov committed Feb 7, 2025
1 parent 43cd9b2 commit c03bc7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void initOreProperty(IGregTechTileEntity te) {
chunks.clear();
cycleIncrease = 0;
Chunk mainChunk = te.getWorld().getChunkFromBlockCoords(te.getXCoord(), te.getZCoord());
OreVeinCount pair = VirtualAPI.extractOreFromVein(mainChunk, 0, 0);
OreVeinCount pair = VirtualAPI.extractOreFromVein(mainChunk, layer, 0);
oreVein = pair != null ? pair.getVein() : null;
sizeVeinPreStart = pair != null ? pair.getSize() : 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void increaseLayer(IGregTechTileEntity te, int reduce) {
public void initOreProperty(IGregTechTileEntity te) {
if (te.isServerSide()) {
Chunk ch = te.getWorld().getChunkFromBlockCoords(te.getXCoord(), te.getZCoord());
OreVeinCount pair = VirtualAPI.extractOreFromChunk(ch, 1, 0);
OreVeinCount pair = VirtualAPI.extractOreFromChunk(ch, layer, 0);
oreVein = pair != null ? pair.getVein() : null;
sizeVeinPreStart = pair != null ? pair.getSize() : 0;
}
Expand Down

0 comments on commit c03bc7a

Please sign in to comment.