mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 14:24:37 +01:00
Fix challenge start positions for the 2nd stage
This commit is contained in:
@@ -24,8 +24,8 @@ import lombok.Setter;
|
||||
public class ChallengeInstance {
|
||||
private final Player player;
|
||||
private final ChallengeExcel excel;
|
||||
private final Position startPos;
|
||||
private final Position startRot;
|
||||
private Position startPos;
|
||||
private Position startRot;
|
||||
|
||||
private boolean hasAvatarDied;
|
||||
private int currentStage;
|
||||
@@ -38,8 +38,8 @@ public class ChallengeInstance {
|
||||
public ChallengeInstance(Player player, ChallengeExcel excel) {
|
||||
this.player = player;
|
||||
this.excel = excel;
|
||||
this.startPos = player.getPos().clone();
|
||||
this.startRot = player.getRot().clone();
|
||||
this.startPos = new Position();
|
||||
this.startRot = new Position();
|
||||
this.currentStage = 1;
|
||||
this.roundsLeft = excel.getChallengeCountDown();
|
||||
this.status = ChallengeStatus.CHALLENGE_DOING;
|
||||
|
||||
@@ -76,6 +76,10 @@ public class ChallengeManager extends BasePlayerManager {
|
||||
return;
|
||||
}
|
||||
|
||||
// Save start positions
|
||||
instance.getStartPos().set(getPlayer().getPos());
|
||||
instance.getStartRot().set(getPlayer().getRot());
|
||||
|
||||
// Setup first challenge stage
|
||||
instance.setupStage1();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user