Skip to content

Commit 0587772

Browse files
committed
Changes how building area work
1 parent 9458032 commit 0587772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scripts/AimAtCursorPlayerCharacterController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ private bool LoopSetBuildingArea(int count)
499499

500500
buildingArea = tempTransform.GetComponent<BuildingArea>();
501501
if (buildingArea == null ||
502-
(buildingArea.Entity && buildingArea.GetObjectId() == ConstructingBuildingEntity.ObjectId) ||
502+
buildingArea.ObjectId == ConstructingBuildingEntity.ObjectId ||
503503
!ConstructingBuildingEntity.buildingTypes.Contains(buildingArea.buildingType))
504504
{
505505
// Skip because this area is not allowed to build the building that you are going to build

0 commit comments

Comments
 (0)