Fix floor tile lattice bug (#8653)

This commit is contained in:
Rane
2022-06-04 15:00:25 -04:00
committed by GitHub
parent c4d0feb8a2
commit c8d1f5f52d

View File

@@ -56,16 +56,14 @@ namespace Content.Server.Tiles
continue;
PlaceAt(mapGrid, location, currentTileDefinition.TileId, component.PlaceTileSound);
return;
}
}
if (HasBaseTurf(currentTileDefinition, "space"))
else if (HasBaseTurf(currentTileDefinition, "space"))
{
mapGrid = _mapManager.CreateGrid(locationMap.MapId);
mapGrid.WorldPosition = locationMap.Position;
location = new EntityCoordinates(mapGrid.GridEntityId, Vector2.Zero);
PlaceAt(mapGrid, location, _tileDefinitionManager[component.OutputTiles[0]].TileId, component.PlaceTileSound, mapGrid.TileSize / 2f);
return;
}
}
}