Fix exped dungeons (#23654)
mapBounds was null after one of my last changes. I changed the transform so it's just passed in directly as I don't think there was an easy way around it. I checked magnet + roomfills still work.
This commit is contained in:
@@ -390,7 +390,11 @@ public sealed partial class SalvageSystem
|
||||
// This doesn't stop it from spawning on top of random things in space
|
||||
// Might be better like this, ghosts could stop it before
|
||||
if (_mapManager.FindGridsIntersecting(finalCoords.MapId, box2Rot).Any())
|
||||
{
|
||||
// Bump it further and further just in case.
|
||||
minActualDistance += 4f;
|
||||
continue;
|
||||
}
|
||||
|
||||
coords = finalCoords;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user