mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
Use the player's head position to control the vertical movement when rainbooming. Fixes #9
This commit is contained in:
parent
2f97a7ae69
commit
a7d582f7cf
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ class PlayerGravityDelegate implements IUpdatable, IGravity, InbtSerialisable, I
|
|||
|
||||
entity.motionX += - forward * MathHelper.sin(entity.rotationYaw * 0.017453292F);
|
||||
entity.motionZ += forward * MathHelper.cos(entity.rotationYaw * 0.017453292F);
|
||||
entity.motionY += 0.3;
|
||||
entity.motionY += forward * MathHelper.sin(entity.rotationPitch * 0.017453292F);
|
||||
|
||||
if (!isRainbooming || entity.world.rand.nextInt(5) == 0) {
|
||||
entity.playSound(SoundEvents.ENTITY_LIGHTNING_THUNDER, 1, 1);
|
||||
|
|
Loading…
Reference in a new issue