mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 22:15:24 +00:00
temporary fix lastRaidTime
This commit is contained in:
1 parent
47528a99d6
commit
7a8ec5914b
3 files changed
+5
-5
No files matched your search
@@ -182,7 +182,7 @@ public class Raid {
|
|||||||
|
|
||||||
//set the last raided time to now
|
//set the last raided time to now
|
||||||
raidedTown.addMetaData(new LongDataField("lastRaided", (System.currentTimeMillis() / 1000)));
|
raidedTown.addMetaData(new LongDataField("lastRaided", (System.currentTimeMillis() / 1000)));
|
||||||
war.setLastRaidTime((System.currentTimeMillis() / 1000));
|
war.setLastRaidTime((int) (System.currentTimeMillis() / 1000));
|
||||||
|
|
||||||
// Creates 10 second looping function for Raid
|
// Creates 10 second looping function for Raid
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class War {
|
|||||||
// References
|
// References
|
||||||
private ArrayList<Siege> sieges = new ArrayList<Siege>();
|
private ArrayList<Siege> sieges = new ArrayList<Siege>();
|
||||||
private ArrayList<Raid> raids = new ArrayList<Raid>();
|
private ArrayList<Raid> raids = new ArrayList<Raid>();
|
||||||
private long lastRaidTime = 0L;
|
private int lastRaidTime = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* War Constructor
|
* War Constructor
|
||||||
@@ -209,11 +209,11 @@ public class War {
|
|||||||
return returnList;
|
return returnList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLastRaidTime(Long lastRaidTime) {
|
public void setLastRaidTime(int lastRaidTime) {
|
||||||
this.lastRaidTime = lastRaidTime;
|
this.lastRaidTime = lastRaidTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getLastRaidTime() {
|
public int getLastRaidTime() {
|
||||||
return this.lastRaidTime;
|
return this.lastRaidTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -104,7 +104,7 @@ public class WarData
|
|||||||
war.setSide1Towns((ArrayList<String>) fileData.get("side1Towns"));
|
war.setSide1Towns((ArrayList<String>) fileData.get("side1Towns"));
|
||||||
war.setSide2Towns((ArrayList<String>) fileData.get("side2Towns"));
|
war.setSide2Towns((ArrayList<String>) fileData.get("side2Towns"));
|
||||||
|
|
||||||
war.setLastRaidTime((long) ((int) fileData.get("lastRaidTime")));
|
war.setLastRaidTime((int) fileData.get("lastRaidTime"));
|
||||||
|
|
||||||
|
|
||||||
// Siege adding from map.
|
// Siege adding from map.
|
||||||
|
|||||||
Reference in new issue
Block a user