Skip to content

Commit

Permalink
fix blaster rendering in itemframes
Browse files Browse the repository at this point in the history
  • Loading branch information
parzivail committed Mar 1, 2021
1 parent 96b3aba commit 8c05a69
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ public void render(ItemStack stack, ModelTransformation.Mode renderMode, boolean
matrices.multiply(new Quaternion(90, 0, 0, true));
matrices.multiply(new Quaternion(0, 0, -90, true));

if (renderMode == ModelTransformation.Mode.FIXED)
{
matrices.multiply(new Quaternion(0, 0, 180, true));
matrices.translate(-m.bounds.getXLength() * 0.75f, 0, 0);
}

float angle = (float)(Math.PI / 4) * 5;
matrices.multiply(new Quaternion(angle, 0, 0, false));

Expand Down

0 comments on commit 8c05a69

Please sign in to comment.