primitive last raid time

This commit is contained in:
Aubri Seebauer committed 2023-04-18 15:22:10 -04:00
1 parent 7e83d66417
commit 011f54d4d6
2 files changed
+5 -4

No files matched your search

@@ -102,7 +102,7 @@ public class Raid {
final boolean side1AreRaiders, final int raidTicks, Player owner) {
this.bukkitId = new int[1];
this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
// this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
this.war = war;
this.raidTicks = raidTicks;
this.raidedTown = raidedTown;
@@ -144,10 +144,11 @@ public class Raid {
public Raid(final War war, final Town raidedTown, final Town gatherTown,
final boolean side1AreRaiders, Player owner) {
this.bukkitId = new int[1];
this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
// this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
this.war = war;
this.raidTicks = 0;
this.raidedTown = raidedTown;
this.gatherTown = gatherTown;
this.owner = owner;
//AttackSide-Town
@@ -22,7 +22,7 @@ public class War {
// References
private ArrayList<Siege> sieges = new ArrayList<Siege>();
private ArrayList<Raid> raids = new ArrayList<Raid>();
private Long lastRaidTime;
private long lastRaidTime = 0;
/**
* War Constructor
@@ -221,7 +221,7 @@ public class War {
this.lastRaidTime = lastRaidTime;
}
public Long getLastRaidTime() {
public long getLastRaidTime() {
return this.lastRaidTime;
}
}