Merge pull request #295 from AEtherSurfer/fix_chunk_change_event_bug
Fix chunk change event bug
This commit is contained in:
commit
9f5753a682
@ -25,6 +25,7 @@ public class FactionsEventChunkChange extends FactionsEventAbstractSender
|
||||
private final PS chunk;
|
||||
public PS getChunk() { return this.chunk; }
|
||||
|
||||
private final Faction currentFaction;
|
||||
private final Faction newFaction;
|
||||
public Faction getNewFaction() { return this.newFaction; }
|
||||
|
||||
@ -36,6 +37,7 @@ public class FactionsEventChunkChange extends FactionsEventAbstractSender
|
||||
{
|
||||
super(sender);
|
||||
this.chunk = chunk.getChunk(true);
|
||||
this.currentFaction = BoardColls.get().getFactionAt(chunk);
|
||||
this.newFaction = newFaction;
|
||||
}
|
||||
|
||||
@ -45,8 +47,6 @@ public class FactionsEventChunkChange extends FactionsEventAbstractSender
|
||||
|
||||
public FactionsEventChunkChangeType getType()
|
||||
{
|
||||
Faction currentFaction = BoardColls.get().getFactionAt(chunk);
|
||||
|
||||
if (currentFaction.isNone()) return FactionsEventChunkChangeType.BUY;
|
||||
if (newFaction.isNormal()) return FactionsEventChunkChangeType.CONQUER;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user