mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 22:15:24 +00:00
fix gather town issue
This commit is contained in:
1 parent
2cced058ca
commit
00b416a975
1 file changed
+3
-2
@@ -102,7 +102,7 @@ public class Raid {
|
|||||||
final boolean side1AreRaiders, final int raidTicks) {
|
final boolean side1AreRaiders, final int raidTicks) {
|
||||||
|
|
||||||
this.bukkitId = new int[1];
|
this.bukkitId = new int[1];
|
||||||
this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
|
// this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
|
||||||
this.war = war;
|
this.war = war;
|
||||||
this.raidTicks = raidTicks;
|
this.raidTicks = raidTicks;
|
||||||
this.raidedTown = raidedTown;
|
this.raidedTown = raidedTown;
|
||||||
@@ -143,10 +143,11 @@ public class Raid {
|
|||||||
public Raid(final War war, final Town raidedTown, final Town gatherTown,
|
public Raid(final War war, final Town raidedTown, final Town gatherTown,
|
||||||
final boolean side1AreRaiders) {
|
final boolean side1AreRaiders) {
|
||||||
this.bukkitId = new int[1];
|
this.bukkitId = new int[1];
|
||||||
this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
|
// this.activeRaiders = activeRaiders == null ? new ArrayList<>() : activeRaiders;
|
||||||
this.war = war;
|
this.war = war;
|
||||||
this.raidTicks = 0;
|
this.raidTicks = 0;
|
||||||
this.raidedTown = raidedTown;
|
this.raidedTown = raidedTown;
|
||||||
|
this.gatherTown = gatherTown;
|
||||||
|
|
||||||
//AttackSide-Town
|
//AttackSide-Town
|
||||||
this.name = (side1AreRaiders ? war.getSide1() : war.getSide2()).toLowerCase() + "-" + raidedTown.getName().toLowerCase();
|
this.name = (side1AreRaiders ? war.getSide1() : war.getSide2()).toLowerCase() + "-" + raidedTown.getName().toLowerCase();
|
||||||
|
|||||||
Reference in new issue
Block a user