mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-03-30 20:42:27 +02:00
Run IntelliJ IDEA code formatter
This commit is contained in:
@@ -12,13 +12,13 @@ import java.util.List;
|
||||
|
||||
public class TowerSystem extends BaseGameSystem {
|
||||
|
||||
private TowerScheduleConfig towerScheduleConfig;
|
||||
|
||||
public TowerSystem(GameServer server) {
|
||||
super(server);
|
||||
this.load();
|
||||
}
|
||||
|
||||
private TowerScheduleConfig towerScheduleConfig;
|
||||
|
||||
public synchronized void load() {
|
||||
try {
|
||||
towerScheduleConfig = DataLoader.loadClass("TowerSchedule.json", TowerScheduleConfig.class);
|
||||
@@ -35,7 +35,7 @@ public class TowerSystem extends BaseGameSystem {
|
||||
var data = GameData.getTowerScheduleDataMap().get(towerScheduleConfig.getScheduleId());
|
||||
if (data == null) {
|
||||
Grasscutter.getLogger().error("Could not get current tower schedule data by schedule id {}, please check your resource files",
|
||||
towerScheduleConfig.getScheduleId());
|
||||
towerScheduleConfig.getScheduleId());
|
||||
}
|
||||
|
||||
return data;
|
||||
@@ -57,13 +57,13 @@ public class TowerSystem extends BaseGameSystem {
|
||||
var nextId = 0;
|
||||
|
||||
// find in entrance floors first
|
||||
for (int i=0;i<entranceFloors.size()-1;i++) {
|
||||
for (int i = 0; i < entranceFloors.size() - 1; i++) {
|
||||
if (floorId == entranceFloors.get(i)) {
|
||||
nextId = entranceFloors.get(i+1);
|
||||
nextId = entranceFloors.get(i + 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (floorId == entranceFloors.get(entranceFloors.size()-1)) {
|
||||
if (floorId == entranceFloors.get(entranceFloors.size() - 1)) {
|
||||
nextId = scheduleFloors.get(0);
|
||||
}
|
||||
|
||||
@@ -72,11 +72,12 @@ public class TowerSystem extends BaseGameSystem {
|
||||
}
|
||||
|
||||
// find in schedule floors
|
||||
for (int i=0; i < scheduleFloors.size() - 1; i++) {
|
||||
for (int i = 0; i < scheduleFloors.size() - 1; i++) {
|
||||
if (floorId == scheduleFloors.get(i)) {
|
||||
nextId = scheduleFloors.get(i + 1);
|
||||
}
|
||||
}return nextId;
|
||||
}
|
||||
return nextId;
|
||||
}
|
||||
|
||||
public Integer getLastEntranceFloor() {
|
||||
|
||||
Reference in New Issue
Block a user