mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Preserve tool orientation so it doesn't look like you're mining with the blunt edge
This commit is contained in:
parent
58b24d07b7
commit
2acb8e6555
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue