Preserve tool orientation so it doesn't look like you're mining with the blunt edge

This commit is contained in:
Sollace 2018-06-29 19:25:08 +02:00
parent 58b24d07b7
commit 2acb8e6555

View file

@ -120,11 +120,11 @@ public class LevitatingItemRenderer {
float ticks = ((IMinecraft)Minecraft.getMinecraft()).getTimer().elapsedPartialTicks - entity.ticksExisted;
float floatAmount = (float)Math.sin(ticks / 9) / 40;
float driftAmount = (float)Math.cos(ticks / 10) / 40;
float driftAmount = (float)Math.cos(ticks / 6) / 40;
translate(driftAmount - floatAmount / 4, floatAmount, doBow ? -0.3F : -0.6F);
if (!doBow) { // bows have to point forwards
if (!stack.getItem().isFull3D() && !doBow) { // bows have to point forwards
if (left) {
rotate(-60, 0, 1, 0);
rotate(30, 0, 0, 1);