Skip to content

Commit

Permalink
fix life essence placement
Browse files Browse the repository at this point in the history
ElMuTaun committed Jan 1, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 1e41a0e commit b163d45
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -439,16 +439,20 @@ private boolean checkBlood() {
}
if (bloodAmountNeeded > mBloodAmount) return false;

int fixX = 0;
int fixY = mTier > 5 ? -1 : -24;
int fixZ = mTier > 5 ? 1 : 24;

int setCount = 0;
for (int y = 0; y < lengthY; y++) {
for (int x = 0; x < lengthX; x++) {
for (int z = 0; z < lengthZ; z++) {
String strList = String.valueOf(structureDef[x][y].charAt(z));
if (!Objects.equals(strList, "Z")) continue;

int aX = offsetX - x;
int aY = offsetY - y - 1;
int aZ = offsetZ - z + 1;
int aX = offsetX - x + fixX;
int aY = offsetY - y + fixY;
int aZ = offsetZ - z + fixZ;

aX += aBaseMetaTileEntity.getXCoord();
aY += aBaseMetaTileEntity.getYCoord();

0 comments on commit b163d45

Please sign in to comment.