mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Fix logic
This commit is contained in:
@@ -74,10 +74,13 @@ public class AreaReinforce extends BaseCommand {
|
||||
if (!reinType.canBeReinforced(current.getType())) {
|
||||
continue;
|
||||
}
|
||||
Block protecting = ReinforcementLogic.getResponsibleBlock(current);
|
||||
if (skipReins) {
|
||||
continue;
|
||||
Reinforcement reinforcement = ReinforcementLogic.getReinforcementAt(current.getLocation());
|
||||
if (reinforcement != null) {
|
||||
if (skipReins) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
Block protecting = ReinforcementLogic.getResponsibleBlock(current);
|
||||
if (!current.getLocation().equals(protecting.getLocation())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user