mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-18 02:24:22 +01:00
Remove the seapony splashing
This commit is contained in:
parent
da790fc984
commit
72004812f2
1 changed files with 1 additions and 15 deletions
|
@ -57,23 +57,9 @@ public class PlayerSeaponyRenderer extends PlayerPonyRenderer {
|
||||||
protected void setupTransforms(AbstractClientPlayerEntity entity, MatrixStack stack, float ageInTicks, float rotationYaw, float partialTicks) {
|
protected void setupTransforms(AbstractClientPlayerEntity entity, MatrixStack stack, float ageInTicks, float rotationYaw, float partialTicks) {
|
||||||
if (wet) {
|
if (wet) {
|
||||||
stack.translate(0, 0.6, 0);
|
stack.translate(0, 0.6, 0);
|
||||||
boolean sneaking = entity.isInSneakingPose();
|
if (entity.isInSneakingPose()) {
|
||||||
float state = sneaking ? 100 : 0;
|
|
||||||
float interpolated = getEntityPony(entity).metadata().getInterpolator(entity.getUuid()).interpolate("seapony_splashing", state, 5);
|
|
||||||
|
|
||||||
if (sneaking) {
|
|
||||||
stack.translate(0, 0.125, 0);
|
stack.translate(0, 0.125, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!MathUtil.compareFloats(interpolated, state)) {
|
|
||||||
for (int i = 0; i < 10; i++) {
|
|
||||||
double x = entity.getEntityWorld().getRandom().nextTriangular(entity.getX(), 1);
|
|
||||||
double y = entity.getY() + 0.6;
|
|
||||||
double z = entity.getEntityWorld().getRandom().nextTriangular(entity.getZ(), 1);
|
|
||||||
|
|
||||||
entity.getEntityWorld().addParticle(ParticleTypes.BUBBLE, x, y, z, 0, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
super.setupTransforms(entity, stack, ageInTicks, rotationYaw, partialTicks);
|
super.setupTransforms(entity, stack, ageInTicks, rotationYaw, partialTicks);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue