Changed MatchLayout function to prioritize the closest HousingItem when matching with HousingGameObject. Basically it just orders candidate HousingItems by their squared distance to the HousingGameObject and takes the first one. The logic for transforming exterior coordinates to local coordinates was taken from the LoadExterior method.
Changed MatchLayout function to prioritize the closest HousingItem when matching with HousingGameObject. Basically it just orders candidate HousingItems by their squared distance to the HousingGameObject and takes the first one. The logic for transforming exterior coordinates to local coordinates was taken from the LoadExterior method.