Construction spring cleaning (#36163)
* Construction warnings cleanup * More construction warnings cleanup * Fix failing ITests - Remove unnecessary casts and dodgy anchroing implementation. * Checking anchor status before setting * Reusing shared system call * inlining anchor setting
This commit is contained in:
@@ -478,7 +478,7 @@ namespace Content.Server.Construction
|
||||
return;
|
||||
}
|
||||
|
||||
var mapPos = location.ToMap(EntityManager, _transformSystem);
|
||||
var mapPos = _transformSystem.ToMapCoordinates(location);
|
||||
var predicate = GetPredicate(constructionPrototype.CanBuildInImpassable, mapPos);
|
||||
|
||||
if (!_interactionSystem.InRangeUnobstructed(user, mapPos, predicate: predicate))
|
||||
|
||||
Reference in New Issue
Block a user