FOURTH AFTER ROLLBACK: error catching for attempt ot upgrade warehouses

This commit is contained in:
2024-06-02 21:55:31 -05:00
parent 885b612bd6
commit 58cf778ce4
2 changed files with 7 additions and 1 deletions
@@ -66,6 +66,8 @@ public class UpgradeAssetMsgHandler extends AbstractClientMsgHandler {
Logger.error("Attempt to upgrade null building by " + player.getName());
return true;
}
if(buildingToRank.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.WAREHOUSE))
return true;
// Early exit for building that is already ranking