Fix logic

This commit is contained in:
Cola
2024-03-05 17:58:56 +11:00
parent e11ef3fcf8
commit 3b2c03ae29

View File

@@ -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;
}