mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-25 05:48:00 +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) {
|
||||
if (wet) {
|
||||
stack.translate(0, 0.6, 0);
|
||||
boolean sneaking = entity.isInSneakingPose();
|
||||
float state = sneaking ? 100 : 0;
|
||||
float interpolated = getEntityPony(entity).metadata().getInterpolator(entity.getUuid()).interpolate("seapony_splashing", state, 5);
|
||||
|
||||
if (sneaking) {
|
||||
if (entity.isInSneakingPose()) {
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue