mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 22:07:59 +01:00
Fixed neck placement when crouching. Closes #212
This commit is contained in:
parent
bf7fe63b81
commit
77f5c382e6
1 changed files with 6 additions and 6 deletions
|
@ -23,7 +23,7 @@ public enum PonyTransformation {
|
||||||
|
|
||||||
switch (part) {
|
switch (part) {
|
||||||
case NECK:
|
case NECK:
|
||||||
if (model.getAttributes().isCrouching) stack.translate(-0.03F, 0.03F, 0.1F);
|
if (model.getAttributes().isCrouching) stack.translate(-0.03F, 0.03F, 0.13F);
|
||||||
break;
|
break;
|
||||||
case HEAD:
|
case HEAD:
|
||||||
if (model.getAttributes().isCrouching) stack.translate(0, 0.1F, 0);
|
if (model.getAttributes().isCrouching) stack.translate(0, 0.1F, 0);
|
||||||
|
@ -48,7 +48,7 @@ public enum PonyTransformation {
|
||||||
case NECK:
|
case NECK:
|
||||||
stack.translate(0, -0.2F, -0.05F);
|
stack.translate(0, -0.2F, -0.05F);
|
||||||
stack.scale(1, 1.3F, 1);
|
stack.scale(1, 1.3F, 1);
|
||||||
if (model.getAttributes().isCrouching) stack.translate(-0.03F, 0.16F, 0.07F);
|
if (model.getAttributes().isCrouching) stack.translate(-0.03F, 0.01F, 0.2F);
|
||||||
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.5F, 0.25F);
|
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.5F, 0.25F);
|
||||||
break;
|
break;
|
||||||
case HEAD:
|
case HEAD:
|
||||||
|
@ -85,7 +85,7 @@ public enum PonyTransformation {
|
||||||
case NECK:
|
case NECK:
|
||||||
stack.translate(0, -0.2F, -0.07F);
|
stack.translate(0, -0.2F, -0.07F);
|
||||||
stack.scale(1, 1.3F, 1);
|
stack.scale(1, 1.3F, 1);
|
||||||
if (model.getAttributes().isCrouching) stack.translate(-0.03F, 0.16F, 0.07F);
|
if (model.getAttributes().isCrouching) stack.translate(-0.03F, -0.07F, 0.09F);
|
||||||
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.5F, 0.25F);
|
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.5F, 0.25F);
|
||||||
break;
|
break;
|
||||||
case HEAD:
|
case HEAD:
|
||||||
|
@ -125,7 +125,7 @@ public enum PonyTransformation {
|
||||||
case NECK:
|
case NECK:
|
||||||
stack.translate(0, 0, 0.04F);
|
stack.translate(0, 0, 0.04F);
|
||||||
stack.scale(1.3F, 1.3F, 1.3F);
|
stack.scale(1.3F, 1.3F, 1.3F);
|
||||||
if (model.getAttributes().isCrouching) stack.translate(0, -0.01F, 0.15F);
|
if (model.getAttributes().isCrouching) stack.translate(-0.03F, -0.16F, 0.15F);
|
||||||
break;
|
break;
|
||||||
case HEAD:
|
case HEAD:
|
||||||
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.9F, 0.9F);
|
if (model.getAttributes().isSwimmingRotated) stack.translate(0, 0.9F, 0.9F);
|
||||||
|
@ -153,7 +153,7 @@ public enum PonyTransformation {
|
||||||
case NECK:
|
case NECK:
|
||||||
stack.translate(0, -0.21F, -0.01F);
|
stack.translate(0, -0.21F, -0.01F);
|
||||||
stack.scale(1, 1.28F, 1);
|
stack.scale(1, 1.28F, 1);
|
||||||
if (model.getAttributes().isCrouching) stack.translate(-0.02F, -0.02F, 0.1F);
|
if (model.getAttributes().isCrouching) stack.translate(-0.04F, -0.1F, 0.15F);
|
||||||
break;
|
break;
|
||||||
case HEAD:
|
case HEAD:
|
||||||
stack.translate(0, -0.11F, 0);
|
stack.translate(0, -0.11F, 0);
|
||||||
|
@ -188,7 +188,7 @@ public enum PonyTransformation {
|
||||||
case NECK:
|
case NECK:
|
||||||
stack.translate(0, -0.2F, 0);
|
stack.translate(0, -0.2F, 0);
|
||||||
stack.scale(1, 1.3F, 1);
|
stack.scale(1, 1.3F, 1);
|
||||||
if (model.getAttributes().isCrouching) stack.translate(-0.02F, -0.02F, 0.1F);
|
if (model.getAttributes().isCrouching) stack.translate(-0.04F, -0.05F, 0.15F);
|
||||||
break;
|
break;
|
||||||
case HEAD:
|
case HEAD:
|
||||||
stack.translate(0, -0.15F, 0);
|
stack.translate(0, -0.15F, 0);
|
||||||
|
|
Loading…
Reference in a new issue