Makes InRangeUnobstructed use MapCoordinates. Fixes #1003
(Also updates Submoduke)
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Content.Server.GameObjects.Components.Construction
|
||||
{
|
||||
var prototype = _prototypeManager.Index<ConstructionPrototype>(prototypeName);
|
||||
|
||||
if (!InteractionChecks.InRangeUnobstructed(Owner, loc.ToMapPos(_mapManager),
|
||||
if (!InteractionChecks.InRangeUnobstructed(Owner, loc.ToMap(_mapManager),
|
||||
ignoredEnt: Owner, insideBlockerValid: prototype.CanBuildInImpassable))
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user