Skip to content

Commit

Permalink
chore: slightly reduce size of tank content rendering
Browse files Browse the repository at this point in the history
some optimization mods cause it to overlap with the main tank otherwise
  • Loading branch information
klikli-dev committed Jul 24, 2023
1 parent 73d878a commit c5fab6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public void actuallyRender(PoseStack poseStack, SalAmmoniacTankBlockEntity pBloc

var fluidHeight = fluidStack.getAmount() / (float) pBlockEntity.tank.getCapacity();

float blockHeight = 15 / 16f;
float blockHeight = 15 / 16f - 2 / 128f;
float blockWidth = 1;
float capHeight = 1 / 4f;
float tankHullWidth = 2 / 16f + 1 / 128f;
float tankHullWidth = 2 / 16f + 2 / 128f;
float minPuddleHeight = 1 / 16f;
float totalHeight = blockHeight - 2 * capHeight - minPuddleHeight;

Expand Down

0 comments on commit c5fab6e

Please sign in to comment.