mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-02 06:28:52 +00:00
Saving looted chunks in data
This commit is contained in:
1 parent
77c458fb4a
commit
4ce603f635
2 files changed
+52
-3
No files matched your search
@@ -727,6 +727,9 @@ public class Raid {
|
||||
}
|
||||
|
||||
public Map<WorldCoord, LootBlock> getLootedChunks() {
|
||||
if(lootedChunks == null) {
|
||||
lootedChunks = new HashMap<>();
|
||||
}
|
||||
return lootedChunks;
|
||||
}
|
||||
|
||||
@@ -752,6 +755,12 @@ public class Raid {
|
||||
this.finished = false;
|
||||
}
|
||||
|
||||
public LootBlock(WorldCoord c, int ticks, double value, boolean finished) {
|
||||
this.worldCoord = c;
|
||||
this.ticks = ticks;
|
||||
this.value = value;
|
||||
this.finished = finished;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user