mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-14 05:14:46 +01:00
Implement monolith settle
This commit is contained in:
@@ -77,19 +77,19 @@ public class StarTowerManager extends PlayerManager implements GameDatabaseObjec
|
||||
return this.game;
|
||||
}
|
||||
|
||||
public StarTowerGame giveUp() {
|
||||
public StarTowerGame endGame() {
|
||||
// Cache instance
|
||||
var instance = this.game;
|
||||
var game = this.game;
|
||||
|
||||
if (instance != null) {
|
||||
if (game != null) {
|
||||
// Set last build
|
||||
this.lastBuild = instance.getBuild();
|
||||
this.lastBuild = game.getBuild();
|
||||
|
||||
// Clear instance
|
||||
this.game = null;
|
||||
}
|
||||
|
||||
return instance;
|
||||
return game;
|
||||
}
|
||||
|
||||
public boolean saveBuild(boolean delete, String name, boolean lock) {
|
||||
|
||||
Reference in New Issue
Block a user