Skip to content

Commit

Permalink
fix fluid textures
Browse files Browse the repository at this point in the history
  • Loading branch information
Decencies committed Dec 28, 2024
1 parent f9636d5 commit 3ac3306
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,17 +329,13 @@ && isAlignedEquals(southEastHeight, southWestHeight)
}

if (this.isSideExposed(level, posX, posY, posZ, dir, Math.max(c1, c2))) {
int adjX = posX + dir.getOffsetX();
int adjY = posY + dir.getOffsetY();
int adjZ = posZ + dir.getOffsetZ();

Sprite sprite = sprites[1];

float u1 = sprite.getFrameU(0.0F);
float u2 = sprite.getFrameU(0.5F);
float v1 = sprite.getFrameV((1.0F - c1) * 0.5F);
float v2 = sprite.getFrameV((1.0F - c2) * 0.5F);
float v3 = sprite.getFrameV(0.5F);
float u2 = sprite.getFrameU(8F);
float v1 = sprite.getFrameV((1.0F - c1) * 16.0F * 0.5F);
float v2 = sprite.getFrameV((1.0F - c2) * 16.0F * 0.5F);
float v3 = sprite.getFrameV(8.0F);

quad.setSprite(sprite);

Expand Down

0 comments on commit 3ac3306

Please sign in to comment.