Run IntelliJ IDEA code formatter

This commit is contained in:
KingRainbow44
2023-03-31 17:19:26 -04:00
parent 5bf5fb07a2
commit 15e2f3ca34
917 changed files with 30030 additions and 22446 deletions

View File

@@ -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() {