forked from SteamWar/SteamWar
Refactor event handling and group assignment logic
Replaced `fight.event` with `event.eventID` for consistency and improved event handling. Adjusted `setGroup` to accept `Integer` instead of `EventGroup` to simplify group assignment logic. Removed unused `event` field in `CreateEventFight` and streamlined related processing.
This commit is contained in:
@@ -153,9 +153,9 @@ public class EventFight implements Comparable<EventFight> {
|
||||
setFight.update(fight, fightID);
|
||||
}
|
||||
|
||||
public void setGroup(EventGroup group) {
|
||||
setGroup.update(group.getId(), fightID);
|
||||
this.groupId = group.getId();
|
||||
public void setGroup(Integer group) {
|
||||
setGroup.update(group, fightID);
|
||||
this.groupId = group;
|
||||
}
|
||||
|
||||
public boolean hasFinished() {
|
||||
|
||||
Reference in New Issue
Block a user