SwitchCraftCC / Plethora-Fabric

A peripheral provider for ComputerCraft, ported to Fabric
MIT License
16 stars 13 forks source link

Owner Meta motion is 0 if player doesn't change Y #52

Closed Ale32bit closed 1 year ago

Ale32bit commented 1 year ago

The values of motionX and motionZ are 0 if the player doesn't move in the Y axis.

motionY should also be 0, but is -0.07840000152587890680511151231257827021181583404541015625 instead.

hugeblank commented 1 year ago

Yes. It's the wrong velocity object entirely.

Pulling this comment from the duplicate, what is the correct place to get the velocity? I was thinking maybe I could make a mixin in Entity that hangs onto the pos before it gets updated later in the same tick, but that didn't seem to work.