mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 06:24:12 +01:00
The bell tolls for this bug.
- Fix MovementBehavior#onSpeedChanged not ever being called.
This commit is contained in:
parent
25fdf08e11
commit
25b4e4d5be
@ -253,6 +253,7 @@ public abstract class AbstractContraptionEntity extends Entity implements IEntit
|
|||||||
BlockInfo blockInfo = pair.left;
|
BlockInfo blockInfo = pair.left;
|
||||||
MovementBehaviour actor = AllMovementBehaviours.of(blockInfo.state);
|
MovementBehaviour actor = AllMovementBehaviours.of(blockInfo.state);
|
||||||
|
|
||||||
|
Vec3d oldMotion = context.motion;
|
||||||
Vec3d actorPosition = toGlobalVector(VecHelper.getCenterOf(blockInfo.pos)
|
Vec3d actorPosition = toGlobalVector(VecHelper.getCenterOf(blockInfo.pos)
|
||||||
.add(actor.getActiveAreaOffset(context)), 1);
|
.add(actor.getActiveAreaOffset(context)), 1);
|
||||||
BlockPos gridPosition = new BlockPos(actorPosition);
|
BlockPos gridPosition = new BlockPos(actorPosition);
|
||||||
@ -261,8 +262,6 @@ public abstract class AbstractContraptionEntity extends Entity implements IEntit
|
|||||||
|
|
||||||
context.rotation = v -> applyRotation(v, 1);
|
context.rotation = v -> applyRotation(v, 1);
|
||||||
context.position = actorPosition;
|
context.position = actorPosition;
|
||||||
|
|
||||||
Vec3d oldMotion = context.motion;
|
|
||||||
if (!actor.isActive(context))
|
if (!actor.isActive(context))
|
||||||
continue;
|
continue;
|
||||||
if (newPosVisited && !context.stall) {
|
if (newPosVisited && !context.stall) {
|
||||||
|
Loading…
Reference in New Issue
Block a user