Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class Player {
public Float truePitch = null;
public Vector3D motion = null;
public boolean onGround = false;
public Float preturn = null;
public Float deltaYaw = null;
public Float deltaPitch = null;
public int[] deltaMouseX = null;
Expand Down Expand Up @@ -170,6 +171,11 @@ public String getLastInputs() {
);
}

@InfoString.Getter
public Float getPreturn() {
return preturn == null ? 0 : preturn;
}

@InfoString.Getter
public Float getDeltaYaw() {
return deltaYaw == null ? 0 : deltaYaw;
Expand Down Expand Up @@ -326,6 +332,14 @@ public Player buildAndSave() {
wadStart = false;
}

Player pprev = prev.getPrevious();
if (pprev == null) {
Player.updateDisplayInstance();
return this;
}

preturn = jumpTick ? pprev.deltaYaw : prev.preturn;

Player.updateDisplayInstance();
return this;
}
Expand Down
Loading